Browse Source

Remove go-alert dependency

pull/456/head
Jae Kwon 9 years ago
parent
commit
1d9e89812a
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      server/http_server.go

+ 0
- 10
server/http_server.go 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)
}
}

Loading…
Cancel
Save