aboutsummaryrefslogtreecommitdiffstats
path: root/miss_htbt_service/get_logger.py
diff options
context:
space:
mode:
authorSrikanthNaidu <sn8492@att.com>2018-12-10 21:46:40 +0530
committerSrikanthNaidu <sn8492@att.com>2018-12-12 18:45:52 +0530
commit20110ffeb5071193e7b437e797636d9d6318dcd4 (patch)
treeebd4e64715f4cafc7261b2eff9990e4faa53d050 /miss_htbt_service/get_logger.py
parent5712f01385eaa05178279aa7e730b3bdde3d1b80 (diff)
Heartbeat Microservice Support
Heartbeat service monitors missing HB notification Issue-ID: DCAEGEN2-267 Change-Id: I21f36056e9509a167bff476231a6bbd661aca1b9 Signed-off-by: SrikanthNaidu <sn8492@att.com>
Diffstat (limited to 'miss_htbt_service/get_logger.py')
-rw-r--r--[-rwxr-xr-x]miss_htbt_service/get_logger.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miss_htbt_service/get_logger.py b/miss_htbt_service/get_logger.py
index a18ed5c..e8d008c 100755..100644
--- 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)