From 1d9e89812adc202811b7fb8e9e0837e73adadb43 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 8 May 2016 14:58:15 -0700 Subject: [PATCH] Remove go-alert dependency --- server/http_server.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/http_server.go b/server/http_server.go index beec9bcc2..cc3da39be 100644 --- a/server/http_server.go +++ b/server/http_server.go @@ -10,7 +10,6 @@ import ( "runtime/debug" "time" - "github.com/tendermint/go-alert" . "github.com/tendermint/go-common" . "github.com/tendermint/go-rpc/types" //"github.com/tendermint/go-wire" @@ -112,12 +111,3 @@ func (w *ResponseWriterWrapper) WriteHeader(status int) { func (w *ResponseWriterWrapper) Hijack() (net.Conn, *bufio.ReadWriter, error) { return w.ResponseWriter.(http.Hijacker).Hijack() } - -// Stick it as a deferred statement in gouroutines to prevent the program from crashing. -func Recover(daemonName string) { - if e := recover(); e != nil { - stack := string(debug.Stack()) - errorString := fmt.Sprintf("[%s] %s\n%s", daemonName, e, stack) - alert.Alert(errorString) - } -}