From 2760519436f78975f16f26c412e842e34b28d624 Mon Sep 17 00:00:00 2001 From: ERIMROB Date: Tue, 12 May 2020 12:56:56 +0100 Subject: [PMSH] Replace own logging implementation with pylog Signed-off-by: ERIMROB Issue-ID: DCAEGEN2-2155 Change-Id: I670c4fff8029a73075b651c2afe6237c08cf907c --- .../pm-subscription-handler/pmsh_service/pmsh_service_main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'components/pm-subscription-handler/pmsh_service/pmsh_service_main.py') diff --git a/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py b/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py index a2ba1fd3..f1fb1e06 100755 --- a/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py +++ b/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py @@ -15,13 +15,11 @@ # # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END===================================================== - import sys from signal import signal, SIGTERM import mod.aai_client as aai -import mod.pmsh_logging as logger -from mod import db, create_app, launch_api_server +from mod import db, create_app, launch_api_server, logger from mod.aai_event_handler import process_aai_events from mod.exit_handler import ExitHandler from mod.pmsh_utils import AppConfig, PeriodicTask, ConfigHandler @@ -35,7 +33,6 @@ def main(): app = create_app() app.app_context().push() db.create_all(app=app) - config = ConfigHandler.get_pmsh_config() app_conf = AppConfig(**config['config']) @@ -66,7 +63,7 @@ def main(): launch_api_server(app_conf) except Exception as e: - logger.debug(f'Failed to Init PMSH: {e}') + logger.error(f'Failed to initialise PMSH: {e}') sys.exit(e) -- cgit 1.2.3-korg