Remove go-alert dependency

This commit is contained in:
Jae Kwon 2016-05-08 14:58:15 -07:00
parent e8538d606a
commit 1d9e89812a
1 changed files with 0 additions and 10 deletions

View File

@ -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)
}
}