summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py
diff options
context:
space:
mode:
authorERIMROB <robertas.rimkus@est.tech>2020-05-12 12:56:56 +0100
committerERIMROB <robertas.rimkus@est.tech>2020-06-05 10:11:06 +0100
commit2760519436f78975f16f26c412e842e34b28d624 (patch)
tree3fb616398002bd4525c10ff8b510bbf5ebadc26f /components/pm-subscription-handler/pmsh_service/pmsh_service_main.py
parent5ed9b7d3cad56c6438bca305b6d2931bd320352b (diff)
[PMSH] Replace own logging implementation with pylog
Signed-off-by: ERIMROB <robertas.rimkus@est.tech> Issue-ID: DCAEGEN2-2155 Change-Id: I670c4fff8029a73075b651c2afe6237c08cf907c
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/pmsh_service_main.py')
-rwxr-xr-xcomponents/pm-subscription-handler/pmsh_service/pmsh_service_main.py7
1 files changed, 2 insertions, 5 deletions
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)