Hi, As far as I understand, os.Stdout & os.Stderr are not buffered. log.Debug writes to stderr. I replaced log.Debug with println, the result is the same. Cheers, Iakov
P.S. Struggling with creating a minimal example; the results is not very stable. Will put it here if I will manage. On Thursday, November 10, 2016 at 4:19:35 PM UTC+1, Jan Mercl wrote: > > On Thu, Nov 10, 2016 at 3:31 PM <iakov....@gmail.com <javascript:>> wrote: > > > So defer is executed before the method exits. > > Does log.Debug flush its output before returning? > > -- > > -j > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.