whistle 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/log.js +8 -4
- package/biz/webui/htdocs/index.html +1 -1
- package/biz/webui/htdocs/js/index.js +32 -32
- package/lib/rules/rules.js +1 -1
- package/lib/upgrade.js +1 -1
- package/package.json +1 -1
package/assets/js/log.js
CHANGED
|
@@ -328,6 +328,9 @@
|
|
|
328
328
|
var pending;
|
|
329
329
|
var wFn = wConsole[level] = function() {
|
|
330
330
|
var result = slice.call(arguments);
|
|
331
|
+
if (!result.length) {
|
|
332
|
+
result = [undefined];
|
|
333
|
+
}
|
|
331
334
|
if (typeof window.onBeforeWhistleLogSend === 'function') {
|
|
332
335
|
pending = true;
|
|
333
336
|
try {
|
|
@@ -338,11 +341,12 @@
|
|
|
338
341
|
pending = false;
|
|
339
342
|
}
|
|
340
343
|
}
|
|
341
|
-
|
|
342
|
-
|
|
344
|
+
var len = result.length;
|
|
345
|
+
if (!len) {
|
|
346
|
+
return;
|
|
343
347
|
}
|
|
344
|
-
|
|
345
|
-
result = [
|
|
348
|
+
for (var i = 0; i < len; i++) {
|
|
349
|
+
result[i] = stringify(result[i]);
|
|
346
350
|
}
|
|
347
351
|
result = stringifyObj(result);
|
|
348
352
|
result && addLog(level, result);
|