Skip to content

Commit 2459733

Browse files
committed
fix logger reset on new output
1 parent 5d342aa commit 2459733

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/logger.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ private function tailCustom( $filepath, $lines = 1, $adaptive = true, $separator
189189
$pos = strrpos( $output, $separator );
190190
if ( $pos !== false ) {
191191
$output = substr( $output, $pos + strlen( $separator ) );
192+
$pos = -1; // we reset the position to start from the beginning of the chunk when slicing.
192193
}
193194
}
194195

0 commit comments

Comments
 (0)