sasai-common-utils 1.0.50 → 1.0.51
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/package.json
CHANGED
|
@@ -181,7 +181,7 @@ function createLogger(config) {
|
|
|
181
181
|
parentSpan: traceContext.parent_span_id,
|
|
182
182
|
thread: "",
|
|
183
183
|
class: "",
|
|
184
|
-
|
|
184
|
+
body: safeJsonStringify({
|
|
185
185
|
step: data?.step || "",
|
|
186
186
|
message,
|
|
187
187
|
method: data?.method?.toUpperCase() || "",
|
|
@@ -220,7 +220,7 @@ function createLogger(config) {
|
|
|
220
220
|
parentSpan: traceContext.parent_span_id,
|
|
221
221
|
thread: "",
|
|
222
222
|
class: "",
|
|
223
|
-
|
|
223
|
+
body: safeJsonStringify({
|
|
224
224
|
step: data?.step || "",
|
|
225
225
|
message: data?.error?.message || "",
|
|
226
226
|
method: errorResponse?.config?.method?.toUpperCase() || "",
|
|
@@ -254,7 +254,7 @@ function createLogger(config) {
|
|
|
254
254
|
trace: traceContext.trace_id,
|
|
255
255
|
span: traceContext.span_id,
|
|
256
256
|
parentSpan: traceContext.parent_span_id,
|
|
257
|
-
|
|
257
|
+
body:
|
|
258
258
|
typeof message === "string" ? message : safeJsonStringify(message),
|
|
259
259
|
...data,
|
|
260
260
|
});
|