mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-03-06 20:10:22 +00:00
Add panic handler
This commit is contained in:
10
pkg/api/panic.go
Normal file
10
pkg/api/panic.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user