Explorar el Código

先把日志打到文件中

gwang hace 5 años
padre
commit
191d7ee8aa
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      Gameserver/Amfphp/Util/CLog.php

+ 5 - 5
Gameserver/Amfphp/Util/CLog.php

@@ -125,11 +125,11 @@ class CLog {
     public static function flush() {
         self::flush2File(enum_LogLevel::Info);                                  # 普通信息写到本地文件
         self::flush2File(enum_LogLevel::Warn);
-        if (GAME_ONLINE) {
-            self::flush2Redis(enum_LogLevel::Err);                              # 外网错误日志写入redis
-        } else {
-            self::flush2File(enum_LogLevel::Err);                               # 内网错误日志写入本地文件
-        }
+//        if (GAME_ONLINE) {
+//        self::flush2Redis(enum_LogLevel::Err);                              # 外网错误日志写入redis
+//        } else {
+        self::flush2File(enum_LogLevel::Err);                               # 内网错误日志写入本地文件
+//        }
     }
 
     /**