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 --- components/pm-subscription-handler/pmsh_service/mod/exit_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/pm-subscription-handler/pmsh_service/mod/exit_handler.py') diff --git a/components/pm-subscription-handler/pmsh_service/mod/exit_handler.py b/components/pm-subscription-handler/pmsh_service/mod/exit_handler.py index 3cb05daa..01cb8dc3 100755 --- a/components/pm-subscription-handler/pmsh_service/mod/exit_handler.py +++ b/components/pm-subscription-handler/pmsh_service/mod/exit_handler.py @@ -16,7 +16,7 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END===================================================== -from mod.pmsh_utils import logger +from mod import logger from mod.subscription import AdministrativeState @@ -35,6 +35,7 @@ class ExitHandler: self.subscription_handler = subscription_handler def __call__(self, sig_num, frame): + logger.info('Graceful shutdown of PMSH initiated.') logger.debug(f'ExitHandler was called with signal number: {sig_num}.') current_sub = self.subscription_handler.current_sub if current_sub and current_sub.administrativeState == AdministrativeState.UNLOCKED.value: -- cgit 1.2.3-korg