From 106088887a05936ef3d94d1fc9759119dacaac8f Mon Sep 17 00:00:00 2001 From: Craig Bryant Date: Thu, 18 Jan 2018 10:47:30 -0700 Subject: [PATCH] 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 --- .../infrastructure/thresholding/AlarmThresholdingBolt.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thresh/src/main/java/monasca/thresh/infrastructure/thresholding/AlarmThresholdingBolt.java b/thresh/src/main/java/monasca/thresh/infrastructure/thresholding/AlarmThresholdingBolt.java index 47c79a7..56a2fc2 100644 --- a/thresh/src/main/java/monasca/thresh/infrastructure/thresholding/AlarmThresholdingBolt.java +++ b/thresh/src/main/java/monasca/thresh/infrastructure/thresholding/AlarmThresholdingBolt.java @@ -1,5 +1,5 @@ /* - * (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP + * (C) Copyright 2014-2016,2018 Hewlett Packard Enterprise Development LP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -241,7 +241,7 @@ public class AlarmThresholdingBolt extends BaseRichBolt { try { alarmEventForwarder.send(Serialization.toJson(event)); } catch (Exception ignore) { - logger.debug("Failure sending alarm", ignore); + logger.error("Failure sending alarm", ignore); } }