Skip to content

Commit

Permalink
Merge pull request #1133 from skalenetwork/develop
Browse files Browse the repository at this point in the history
Sync with stable. Add additional logs
  • Loading branch information
DmytroNazarenko authored Nov 7, 2024
2 parents 888a56f + 9e7ea8f commit 1e9ae7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions core/schains/monitor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tools/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 131 in tools/logger.py

View check run for this annotation

Codecov / codecov/patch

tools/logger.py#L131

Added line #L131 was not covered by tests

0 comments on commit 1e9ae7b

Please sign in to comment.