Skip to content

Commit

Permalink
Merge pull request Terry-Mao#275 from tomwei7/master
Browse files Browse the repository at this point in the history
fix golangci-lint staticcheck  SA1006
  • Loading branch information
Tony authored Mar 4, 2019
2 parents e708cc7 + 9fcdc78 commit 54e3012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/logic/http/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func recoverHandler(c *gin.Context) {
buf = buf[:runtime.Stack(buf, false)]
httprequest, _ := httputil.DumpRequest(c.Request, false)
pnc := fmt.Sprintf("[Recovery] %s panic recovered:\n%s\n%s\n%s", time.Now().Format("2006-01-02 15:04:05"), string(httprequest), err, buf)
fmt.Fprintf(os.Stderr, pnc)
fmt.Fprint(os.Stderr, pnc)
log.Error(pnc)
c.AbortWithStatus(500)
}
Expand Down

0 comments on commit 54e3012

Please sign in to comment.