On 2016-10-29 13:37, Łukasz Kostka wrote:
Hi.

In docs <https://golang.org/pkg/log/#Logger> I can see that logger can
be safely used in multiple coroutines. I've implemented
<https://github.com/ClearcodeHQ/Go-Forward/blob/logging/main.go> this,
but my program seems to freeze at random. Am I doing something wrong ?

It's most likely not your use of logging which makes it freeze.

Try run it with -race ...

If that doesn't panic, then just try to send the process a signal 6 (SIGABRT) ... and look at the stack-trace output to see where each go-routine is when it's frozen.

/Peter

--
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.

Reply via email to