You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn(`[Logtail] Found a circular reference when serializing logs. Please do not use circular references in your logs.`);
108
-
}elseif(this._options.contextObjectMaxDepthWarn){
107
+
if(this._options.contextObjectCircularRefWarn){
108
+
console.warn(`[Logtail] Found a circular reference when serializing logs. Please do not use circular references in your logs.`);
109
+
}
110
+
return'<omitted circular reference>'
111
+
}
112
+
if(this._options.contextObjectMaxDepthWarn){
109
113
console.warn(`[Logtail] Max depth of ${this._options.contextObjectMaxDepth} reached when serializing logs. Please do not use excessive object depth in your logs.`);
110
114
}
111
-
112
-
returnvalue.toString();// results in "[object Object]"
115
+
return`<omitted context beyond configured max depth: ${this._options.contextObjectMaxDepth}>`
0 commit comments