X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1%2Fcontroller.py;h=19b8a26b4ee27e08a4de90964fa9f4d16ca66587;hb=f0ac3fb27a3bda65076f790def3284065c95b098;hp=49f7d2467a44715ca47009c2c9c85fecf02a1ceb;hpb=f6de4e8e179d8435f6b8d324bd6bc0135f1dae56;p=ric-plt%2Fa1.git diff --git a/a1/controller.py b/a1/controller.py index 49f7d24..19b8a26 100644 --- a/a1/controller.py +++ b/a1/controller.py @@ -27,6 +27,7 @@ from a1 import a1rmr, exceptions, data mdc_logger = Logger(name=__name__) +mdc_logger.mdclog_format_init(configmap_monitor=True) a1_counters = Counter('A1Policy', 'Policy type and instance counters', ['counter']) @@ -76,10 +77,10 @@ def get_healthcheck(): 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