File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/main/java/org/graylog2/plugin/httpmonitor Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >org.graylog2</groupId >
88 <artifactId >graylog2-plugin-input-httpmonitor</artifactId >
9- <version >1.0.0 </version >
9+ <version >1.0.1 </version >
1010 <packaging >jar</packaging >
1111
1212 <name >${project.artifactId} </name >
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public URI getURL() {
3434
3535 @ Override
3636 public Version getVersion () {
37- return new Version (1 , 0 , 0 );
37+ return new Version (1 , 0 , 1 );
3838 }
3939
4040 @ Override
@@ -44,7 +44,7 @@ public String getDescription() {
4444
4545 @ Override
4646 public Version getRequiredVersion () {
47- return new Version (1 , 0 , 0 );
47+ return new Version (1 , 2 , 0 );
4848 }
4949
5050 @ Override
Original file line number Diff line number Diff line change @@ -207,7 +207,9 @@ public void run() {
207207 LOGGER .debug ("Exception while executing request for URL " + config .getUrl (), e );
208208 eventdata .put ("_status" , 999 );
209209 } else {
210- throw e ;
210+ //Any other exception..
211+ LOGGER .debug ("Exception while executing request for URL " + config .getUrl (), e );
212+ eventdata .put ("_status" , 997 );
211213 }
212214 }
213215 eventdata .put ("_responseTime" , time );
@@ -218,7 +220,7 @@ public void run() {
218220 messageInput .processRawMessage (new RawMessage (byteStream .toByteArray ()));
219221 byteStream .close ();
220222
221- } catch (InterruptedException | ExecutionException | IOException e ) {
223+ } catch (InterruptedException | IOException e ) {
222224 LOGGER .error ("Exception while executing request for URL " + config .getUrl (), e );
223225 }
224226 }
You can’t perform that action at this time.
0 commit comments