Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d8f0553

Browse files
committedSep 26, 2018
fix: output log to os.Stderr
1 parent b02e4f2 commit d8f0553

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎debug.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"bytes"
99
"fmt"
1010
"html/template"
11+
"os"
1112
)
1213

1314
// IsDebugging returns true if the framework is running in debug mode.
@@ -45,7 +46,7 @@ func debugPrintLoadTemplate(tmpl *template.Template) {
4546

4647
func debugPrint(format string, values ...interface{}) {
4748
if IsDebugging() {
48-
fmt.Printf("[GIN-debug] "+format, values...)
49+
fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)
4950
}
5051
}
5152

0 commit comments

Comments
 (0)
Please sign in to comment.