Skip to content

Commit 0d9cee5

Browse files
committed
upgraded ning library to 1.9.29 to work with graylog 1.2 and add a new error code for other excepotions
1 parent f62b7cc commit 0d9cee5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

src/main/java/org/graylog2/plugin/httpmonitor/HttpMonitorInputMetaData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/main/java/org/graylog2/plugin/httpmonitor/HttpMonitorTransport.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)