Explorar o código

Google App Engine does not support fmt. Using log instead

Manu Mtz-Almeida %!s(int64=10) %!d(string=hai) anos
pai
achega
c8ee142717
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      mode.go

+ 2 - 2
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...)
 	}
 }