janelia-flyem/dvid — pull request #3 by stephenplaza (2013-11-04 22:24:44+00:00)
Title: wraps http handlers to allow for recovery if there is a panic 

I thought it more idiomatic to wrap the http handlers as specified in the book. This code will prevent panics in a handler methos from killing the entire program. I tested this code on a small example where I forced a panic in one of the handlers. The message logged correctly and the program was still alive.