mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
gofmt recovery changes (refs #1259)
This commit is contained in:
parent
97c4c98a45
commit
d3a05e47f2
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"syscall"
|
"syscall"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user