Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I649dd94059263244645e7a8236ad058c3f0df55d
# we must free each sbuf
rmr.rmr_free_msg(sbuf)
# we must free each sbuf
rmr.rmr_free_msg(sbuf)
self.last_ran = time.time()
time.sleep(1)
self.last_ran = time.time()
time.sleep(1)
mdc_logger = Logger(name=__name__)
mdc_logger = Logger(name=__name__)
+mdc_logger.mdclog_format_init(configmap_monitor=True)
a1_counters = Counter('A1Policy', 'Policy type and instance counters', ['counter'])
a1_counters = Counter('A1Policy', 'Policy type and instance counters', ['counter'])
3. checks that our SDL connection is healthy
"""
if not a1rmr.healthcheck_rmr_thread():
3. checks that our SDL connection is healthy
"""
if not a1rmr.healthcheck_rmr_thread():
- mdc_logger.debug("A1 is not healthy due to the rmr thread")
+ mdc_logger.error("A1 is not healthy due to the rmr thread")
return "rmr thread is unhealthy", 500
if not data.SDL.healthcheck():
return "rmr thread is unhealthy", 500
if not data.SDL.healthcheck():
- mdc_logger.debug("A1 is not healthy because it does not have a connection to SDL")
+ mdc_logger.error("A1 is not healthy because it does not have a connection to SDL")
return "sdl connection is unhealthy", 500
return "", 200
return "sdl connection is unhealthy", 500
return "", 200
mdc_logger = Logger(name=__name__)
mdc_logger = Logger(name=__name__)
+mdc_logger.mdclog_format_init(configmap_monitor=True)
if USE_FAKE_SDL:
mdc_logger.debug("Using fake SDL")
SDL = SDLWrapper(use_fake_sdl=USE_FAKE_SDL)
if USE_FAKE_SDL:
mdc_logger.debug("Using fake SDL")
SDL = SDLWrapper(use_fake_sdl=USE_FAKE_SDL)