From 20110ffeb5071193e7b437e797636d9d6318dcd4 Mon Sep 17 00:00:00 2001 From: SrikanthNaidu Date: Mon, 10 Dec 2018 21:46:40 +0530 Subject: Heartbeat Microservice Support Heartbeat service monitors missing HB notification Issue-ID: DCAEGEN2-267 Change-Id: I21f36056e9509a167bff476231a6bbd661aca1b9 Signed-off-by: SrikanthNaidu --- miss_htbt_service/get_logger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 miss_htbt_service/get_logger.py (limited to 'miss_htbt_service/get_logger.py') diff --git a/miss_htbt_service/get_logger.py b/miss_htbt_service/get_logger.py old mode 100755 new mode 100644 index a18ed5c..e8d008c --- a/miss_htbt_service/get_logger.py +++ b/miss_htbt_service/get_logger.py @@ -22,7 +22,8 @@ import logging '''Configures the module root logger''' root = logging.getLogger() if root.handlers: - root.handlers.clear() + #root.handlers.clear() + del root.handlers[:] formatter = logging.Formatter('%(asctime)s | %(name)s | %(module)s | %(funcName)s | %(lineno)d | %(levelname)s | %(message)s') handler = logging.StreamHandler() handler.setFormatter(formatter) -- cgit 1.2.3-korg