Add panic handler

This commit is contained in:
Stefan Prodan
2018-08-20 11:26:24 +03:00
parent 49746fe2fb
commit af6d11fd33

10
pkg/api/panic.go Normal file
View File

@@ -0,0 +1,10 @@
package api
import (
"net/http"
)
func (s *Server) panicHandler(w http.ResponseWriter, r *http.Request) {
s.logger.Panic("Panic command received")
}