瀏覽代碼

Google App Engine does not support fmt. Using log instead

Manu Mtz-Almeida 10 年之前
父節點
當前提交
c8ee142717
共有 1 個文件被更改,包括 2 次插入2 次删除
  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...)
 	}
 }