flush stdout after each CLI logging call
This commit is contained in:
		
							parent
							
								
									81cd320928
								
							
						
					
					
						commit
						0452de1be9
					
				| @ -25,6 +25,7 @@ function log_msg(string $section, int $priority, string $message, ?string $flash | |||||||
| 
 | 
 | ||||||
|     if ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') && ($priority >= $threshold)) { |     if ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') && ($priority >= $threshold)) { | ||||||
|         print date("c")." $section: $message\n"; |         print date("c")." $section: $message\n"; | ||||||
|  |         ob_flush(); | ||||||
|     } |     } | ||||||
|     if (!is_null($flash)) { |     if (!is_null($flash)) { | ||||||
|         $page->flash($flash); |         $page->flash($flash); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user