We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02e4f2 commit d8f0553Copy full SHA for d8f0553
debug.go
@@ -8,6 +8,7 @@ import (
8
"bytes"
9
"fmt"
10
"html/template"
11
+ "os"
12
)
13
14
// IsDebugging returns true if the framework is running in debug mode.
@@ -45,7 +46,7 @@ func debugPrintLoadTemplate(tmpl *template.Template) {
45
46
47
func debugPrint(format string, values ...interface{}) {
48
if IsDebugging() {
- fmt.Printf("[GIN-debug] "+format, values...)
49
+ fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)
50
}
51
52
0 commit comments