Do not buffer logs in the verbose logger (#6465)
With the old policy the most recent log would not be printed until the next log is produced (which may be indefinitely). This change prints logs immediately along with a time delta since the previous log.
This commit is contained in:
@@ -206,9 +206,6 @@ Future<Null> _exit(int code) async {
|
||||
// Run shutdown hooks before flushing logs
|
||||
await runShutdownHooks();
|
||||
|
||||
// Write any buffered output.
|
||||
logger.flush();
|
||||
|
||||
// Give the task / timer queue one cycle through before we hard exit.
|
||||
Timer.run(() {
|
||||
printTrace('exiting with code $code');
|
||||
|
||||
Reference in New Issue
Block a user