Skip to content

Commit 9b0a7e7

Browse files
committed
log.py(fix[setup_logger]): Add vcspull.cli.fmt to CLI loggers list
why: vcspull.cli.fmt was missing from the list of CLI loggers that get SimpleLogFormatter, causing it to fall back to DebugLogFormatter which outputs to stderr and bypasses pytest's log capture. what: - Add 'vcspull.cli.fmt' to cli_loggers list in setup_logger function - Ensures fmt module gets same clean output formatting as other CLI modules refs: Fixes test failures in test_fmt.py when run after test_log.py
1 parent 8f27752 commit 9b0a7e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vcspull/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def setup_logger(
5353
"vcspull.cli.add",
5454
"vcspull.cli.add_from_fs",
5555
"vcspull.cli.sync",
56+
"vcspull.cli.fmt",
5657
]
5758

5859
for logger_name in cli_loggers:

0 commit comments

Comments
 (0)