Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony committed Apr 19, 2019
1 parent bb116aa commit 797a640
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.Fprint(os.Stderr, pnc)
fmt.Fprintf(os.Stderr, pnc)
log.Error(pnc)
c.AbortWithStatus(500)
}
Expand Down

0 comments on commit 797a640

Please sign in to comment.