From 84bee881e1ffaab6ea259e9438ce047192d9d743 Mon Sep 17 00:00:00 2001 From: badrogger Date: Wed, 6 Nov 2024 16:11:53 +0000 Subject: [PATCH] Improve logs --- core/schains/monitor/main.py | 7 +++++++ tools/logger.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/schains/monitor/main.py b/core/schains/monitor/main.py index b3c58972..54ffbefe 100644 --- a/core/schains/monitor/main.py +++ b/core/schains/monitor/main.py @@ -135,6 +135,7 @@ def run_skaled_pipeline( dutils = dutils or DockerUtils() rc = get_default_rule_controller(name=schain_name) + logger.info('Initing skaled checks manager') skaled_checks = SkaledChecks( schain_name=schain.name, schain_record=schain_record, @@ -143,9 +144,12 @@ def run_skaled_pipeline( sync_node=SYNC_NODE, ) + logger.info('Initing skaled status') skaled_status = get_skaled_status(schain_name) + logger.info('Initing node-cli status') ncli_status = get_node_cli_status(schain_name) + logger.info('Initing skaled action manager') skaled_am = SkaledActionManager( schain=schain, rule_controller=rc, @@ -155,8 +159,11 @@ def run_skaled_pipeline( econfig=ExternalConfig(schain_name), dutils=dutils, ) + logger.info('Fetching skaled checks') check_status = skaled_checks.get_all(log=False, expose=True) + logger.info('Get automatic repair option') automatic_repair = get_automatic_repair_option() + logger.info('Creating api only check results') api_status = get_api_checks_status(status=check_status, allowed=TG_ALLOWED_CHECKS) notify_checks(schain_name, node_config.all(), api_status) diff --git a/tools/logger.py b/tools/logger.py index 5c82b2fd..800e8007 100644 --- a/tools/logger.py +++ b/tools/logger.py @@ -128,4 +128,4 @@ def init_api_logger(): def init_sync_logger(): - init_logger(ADMIN_LOG_FORMAT, SYNC_LOG_PATH) + init_logger(ADMIN_LOG_FORMAT, SYNC_LOG_PATH, DEBUG_LOG_PATH)