mdc_logger = Logger(name=__name__)
+mdc_logger.mdclog_format_init(configmap_monitor=True)
a1_counters = Counter('A1Policy', 'Policy type and instance counters', ['counter'])
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():
- 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
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)