From f4b824d0970d25523558a2bf43369012fc135611 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Mon, 21 Aug 2023 15:20:01 -0500 Subject: [PATCH] chore: add log stmt --- silverback/_cli.py | 2 ++ silverback/application.py | 1 + 2 files changed, 3 insertions(+) diff --git a/silverback/_cli.py b/silverback/_cli.py index 05fb434c..c4e3b8c4 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -3,6 +3,7 @@ import click from ape.cli import AccountAliasPromptChoice, ape_cli_context, network_option, verbosity_option +from ape.logging import logger from silverback._importer import import_from_string from silverback.runner import LiveRunner @@ -18,6 +19,7 @@ def _load_runner(ctx, param, val): return LiveRunner elif runner := import_from_string(val): + logger.info(f"Using custom runner '{runner.__name__}'.") return runner raise ValueError(f"Failed to import runner '{val}'.") diff --git a/silverback/application.py b/silverback/application.py index 06fdeec0..ca627c0d 100644 --- a/silverback/application.py +++ b/silverback/application.py @@ -52,6 +52,7 @@ def __init__(self, settings: Optional[Settings] = None): new_bock_timeout_str = ( f"\n NEW_BLOCK_TIMEOUT={self.new_block_timeout}" if self.new_block_timeout else "" ) + logger.info( f"Loaded Silverback App:{network_str}" f"{signer_str}{start_block_str}{new_bock_timeout_str}"