Skip to content

Commit 1f1bb20

Browse files
Copilotswissspidy
andcommitted
Suppress progress bar when logging is enabled
Fixes logging test by suppressing progress bar whenever logging is enabled (not just when logging to STDOUT), as the progress bar output can interfere with clean log output. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 681d4c0 commit 1f1bb20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Search_Replace_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ private function should_show_progress_bar() {
905905
return false;
906906
}
907907

908-
// Don't show progress bar if logging to STDOUT
909-
if ( STDOUT === $this->log_handle ) {
908+
// Don't show progress bar if logging is enabled (would interfere with log output)
909+
if ( null !== $this->log_handle ) {
910910
return false;
911911
}
912912

0 commit comments

Comments
 (0)