mirror of
https://github.com/gin-gonic/gin.git
synced 2025-07-05 12:07:13 +08:00
Google App Engine does not support fmt. Using log instead
This commit is contained in:
4
mode.go
4
mode.go
@ -5,7 +5,7 @@
|
||||
package gin
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
@ -58,6 +58,6 @@ func IsDebugging() bool {
|
||||
|
||||
func debugPrint(format string, values ...interface{}) {
|
||||
if IsDebugging() {
|
||||
fmt.Printf("[GIN-debug] "+format, values...)
|
||||
log.Printf("[GIN-debug] "+format, values...)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user