only flush the logger when done() (performance enhancement)
1 file changed