gofmt recovery changes (refs #1259)

This commit is contained in:
Justin Israel 2018-09-17 17:10:30 +12:00
parent 97c4c98a45
commit d3a05e47f2
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ func RecoveryWithWriter(out io.Writer) HandlerFunc {
logger.Printf("%s\n%s%s", err, string(httprequest), reset) logger.Printf("%s\n%s%s", err, string(httprequest), reset)
} else { } else {
logger.Printf("[Recovery] %s panic recovered:\n%s\n%s\n%s%s", logger.Printf("[Recovery] %s panic recovered:\n%s\n%s\n%s%s",
timeFormat(time.Now()), string(httprequest), err, stack(3), reset) timeFormat(time.Now()), string(httprequest), err, stack(3), reset)
} }
} }

View File

@ -8,7 +8,7 @@ import (
"bytes" "bytes"
"net" "net"
"net/http" "net/http"
"os" "os"
"syscall" "syscall"
"testing" "testing"