Skip to content

Commit 402ef12

Browse files
authoredSep 27, 2018
fix: fmt output log to os.Stderr (#1571)
fix #1560 changes are breaking in App Engine. cc @giulianobr @philippgille
1 parent 834a2ec commit 402ef12

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
"runtime"
1213
"strconv"
1314
"strings"
@@ -50,7 +51,7 @@ func debugPrintLoadTemplate(tmpl *template.Template) {
5051

5152
func debugPrint(format string, values ...interface{}) {
5253
if IsDebugging() {
53-
fmt.Printf("[GIN-debug] "+format, values...)
54+
fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)
5455
}
5556
}
5657

0 commit comments

Comments
 (0)
Please sign in to comment.