浏览代码

Updates logs.

Updates to always use jitsi-meet-logger and print only errors for monitoring callstats callback.
master
damencho 8 年前
父节点
当前提交
9dd1aafefa
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      modules/statistics/CallStats.js

+ 4
- 2
modules/statistics/CallStats.js 查看文件

@@ -68,7 +68,7 @@ function initCallback (err, msg) {
68 68
 
69 69
     if(!fabricInitialized) {
70 70
         CallStats.initializeFailed = true;
71
-        console.log("callstats fabric not initilized", ret.message);
71
+        logger.log("callstats fabric not initilized", ret.message);
72 72
         return;
73 73
     }
74 74
 
@@ -233,7 +233,9 @@ CallStats.prototype.pcCallback = _try_catch(function (err, msg) {
233 233
     if (!callStats) {
234 234
         return;
235 235
     }
236
-    logger.log("Monitoring status: "+ err + " msg: " + msg);
236
+
237
+    if (err !== 'success')
238
+        logger.error("Monitoring status: "+ err + " msg: " + msg);
237 239
 });
238 240
 
239 241
 /**

正在加载...
取消
保存