You can probably add a defer/recover to your main which will "catch" panics, report the panic and stack trace and then exit your program with non zero code.
However you can probably use supervisor events (http://supervisord.org/events.html#events) to get the same effect without changing your code. -- 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.