浏览代码

统计模块输出错误日志

walkor 11 年之前
父节点
当前提交
bbc2180e6b
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      applications/Demo/Lib/StatisticClient.php

+ 5 - 0
applications/Demo/Lib/StatisticClient.php

@@ -55,6 +55,11 @@ class StatisticClient
         
         $bin_data = StatisticProtocol::encode($module, $interface, $cost_time, $success, $code, $msg);
         
+        if(!$success)
+        {
+            echo $msg;
+        }
+        
         return self::sendData($report_address, $bin_data);
     }