Skip to content

Commit

Permalink
chore: add log stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 21, 2023
1 parent a1b1165 commit f4b824d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}'.")
Expand Down
1 change: 1 addition & 0 deletions silverback/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f4b824d

Please sign in to comment.