Google App Engine does not support fmt. Using log instead

This commit is contained in:
Manu Mtz-Almeida 2015-03-23 04:40:33 +01:00
parent 3285007fbb
commit c8ee142717

View File

@ -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...)
}
}