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:
Jason Simmons
2016-10-21 16:54:59 -07:00
committed by GitHub
parent 379b1030d7
commit 022cb2d9dc
4 changed files with 31 additions and 59 deletions

View File

@@ -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');