mirror of https://github.com/gin-gonic/gin.git
Google App Engine does not support fmt. Using log instead
This commit is contained in:
parent
3285007fbb
commit
c8ee142717
4
mode.go
4
mode.go
|
@ -5,7 +5,7 @@
|
||||||
package gin
|
package gin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -58,6 +58,6 @@ func IsDebugging() bool {
|
||||||
|
|
||||||
func debugPrint(format string, values ...interface{}) {
|
func debugPrint(format string, values ...interface{}) {
|
||||||
if IsDebugging() {
|
if IsDebugging() {
|
||||||
fmt.Printf("[GIN-debug] "+format, values...)
|
log.Printf("[GIN-debug] "+format, values...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue