flush stdout after each CLI logging call

This commit is contained in:
Shish 2020-02-02 15:53:05 +00:00
parent 81cd320928
commit 0452de1be9

View file

@ -25,6 +25,7 @@ function log_msg(string $section, int $priority, string $message, ?string $flash
if ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') && ($priority >= $threshold)) {
print date("c")." $section: $message\n";
ob_flush();
}
if (!is_null($flash)) {
$page->flash($flash);