diff options
Diffstat (limited to 'vendor/github.com/gin-gonic/gin/debug.go')
-rw-r--r-- | vendor/github.com/gin-gonic/gin/debug.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/gin-gonic/gin/debug.go b/vendor/github.com/gin-gonic/gin/debug.go index ed313868e..9bacc6857 100644 --- a/vendor/github.com/gin-gonic/gin/debug.go +++ b/vendor/github.com/gin-gonic/gin/debug.go @@ -95,7 +95,9 @@ at initialization. ie. before any route is registered or the router is listening } func debugPrintError(err error) { - if err != nil && IsDebugging() { - fmt.Fprintf(DefaultErrorWriter, "[GIN-debug] [ERROR] %v\n", err) + if err != nil { + if IsDebugging() { + fmt.Fprintf(DefaultErrorWriter, "[GIN-debug] [ERROR] %v\n", err) + } } } |