Skip to content

Commit

Permalink
fix: fmt output log to os.Stderr (gin-gonic#1571)
Browse files Browse the repository at this point in the history
fix gin-gonic#1560 changes are breaking in App Engine.

cc @giulianobr @philippgille
  • Loading branch information
appleboy authored and justinfx committed Nov 3, 2018
1 parent d1b243d commit 331ad88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"bytes"
"fmt"
"html/template"
"os"
"runtime"
"strconv"
"strings"
Expand Down Expand Up @@ -50,7 +51,7 @@ func debugPrintLoadTemplate(tmpl *template.Template) {

func debugPrint(format string, values ...interface{}) {
if IsDebugging() {
fmt.Printf("[GIN-debug] "+format, values...)
fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)
}
}

Expand Down

0 comments on commit 331ad88

Please sign in to comment.