Browse Source

Log as error failure to send to Kafka

Exception on failure to send to Kafka was only being logged
at the debug level. Increased to error level as this is a major
failure in the Threshold Engine functionality

Change-Id: I131d6d7a20cd0e907334cf5d0ff6fac342e8f320
tags/1.5.0
Craig Bryant 1 year ago
parent
commit
106088887a

+ 2
- 2
thresh/src/main/java/monasca/thresh/infrastructure/thresholding/AlarmThresholdingBolt.java View File

@@ -1,5 +1,5 @@
1 1
 /*
2
- * (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
2
+ * (C) Copyright 2014-2016,2018 Hewlett Packard Enterprise Development LP
3 3
  *
4 4
  * Licensed under the Apache License, Version 2.0 (the "License");
5 5
  * you may not use this file except in compliance with the License.
@@ -241,7 +241,7 @@ public class AlarmThresholdingBolt extends BaseRichBolt {
241 241
     try {
242 242
       alarmEventForwarder.send(Serialization.toJson(event));
243 243
     } catch (Exception ignore) {
244
-      logger.debug("Failure sending alarm", ignore);
244
+      logger.error("Failure sending alarm", ignore);
245 245
     }
246 246
   }
247 247
 

Loading…
Cancel
Save