Authored by 毕凯

添加默认值

Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -59,7 +59,7 @@ const safeStringify = require('fast-safe-stringify');
// 循环对象检测
app.set('json replacer', function(key, value) {
if (!key) {
let safeStr = safeStringify(value);
let safeStr = safeStringify(value) || '{}';
if (/\[Circular\]/.test(safeStr)) {
logger.error('stringify error:', value);
... ...