Skip to content
Myr

fix: fmt output log to os.Stderr (#1571)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix #1560 changes are breaking in App Engine. cc @giulianobr @philippgille

authored by Bo-Yi Wu · committed by GitHub · parent 834a2ec · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:debug.go+2 added-1 removed
6 unmodified lines
7import (8 "bytes"9 "fmt"10 "html/template"11 "os"12 "runtime"13 "strconv"14 "strings"15)
34 unmodified lines
50}5152func debugPrint(format string, values ...interface{}) {53 if IsDebugging() {53 fmt.Printf("[GIN-debug] "+format, values...)54 fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)55 }56}5758func getMinVer(v string) (uint64, error) {
42 unmodified lines