Skip to content

Commit b6e8d78

Browse files
committed
Add slot information in log messages
1 parent 4a50ca4 commit b6e8d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth_validator_watcher/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def log_single_entry(cfg: Config, validator: str, registry: WatchedValidators, m
106106
label_msg_slack = f' ({", ".join([f"`{label}`" for label in labels])})'
107107
label_msg_shell = f' ({", ".join(labels)})'
108108

109-
msg_shell = f'{color}{emoji} Validator {shorten_validator(validator)}{label_msg_shell} {msg}{COLOR_RESET}'
109+
msg_shell = f'{color}{emoji} Validator {shorten_validator(validator)}{label_msg_shell} {msg} on slot {slot}{COLOR_RESET}'
110110
logging.info(msg_shell)
111111

112112
msg_slack = f'{emoji} Validator {beaconcha_validator_link(cfg, validator)}{label_msg_slack} {msg} on slot {beaconcha_slot_link(cfg, slot)}'

0 commit comments

Comments
 (0)