@dxos/tracing 0.8.4-main.84f28bd → 0.8.4-main.b97322e

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/tracing",
3
- "version": "0.8.4-main.84f28bd",
3
+ "version": "0.8.4-main.b97322e",
4
4
  "description": "Async utilities.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -27,14 +27,14 @@
27
27
  "src"
28
28
  ],
29
29
  "dependencies": {
30
- "@dxos/async": "0.8.4-main.84f28bd",
31
- "@dxos/codec-protobuf": "0.8.4-main.84f28bd",
32
- "@dxos/context": "0.8.4-main.84f28bd",
33
- "@dxos/invariant": "0.8.4-main.84f28bd",
34
- "@dxos/log": "0.8.4-main.84f28bd",
35
- "@dxos/node-std": "0.8.4-main.84f28bd",
36
- "@dxos/protocols": "0.8.4-main.84f28bd",
37
- "@dxos/util": "0.8.4-main.84f28bd"
30
+ "@dxos/async": "0.8.4-main.b97322e",
31
+ "@dxos/codec-protobuf": "0.8.4-main.b97322e",
32
+ "@dxos/context": "0.8.4-main.b97322e",
33
+ "@dxos/log": "0.8.4-main.b97322e",
34
+ "@dxos/invariant": "0.8.4-main.b97322e",
35
+ "@dxos/node-std": "0.8.4-main.b97322e",
36
+ "@dxos/protocols": "0.8.4-main.b97322e",
37
+ "@dxos/util": "0.8.4-main.b97322e"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -199,7 +199,7 @@ export class TraceProcessor {
199
199
  } else {
200
200
  res[key] = sanitizeValue(
201
201
  value,
202
- options.depth === undefined ? 1 : options.depth ?? MAX_INFO_OBJECT_DEPTH,
202
+ options.depth === undefined ? 1 : (options.depth ?? MAX_INFO_OBJECT_DEPTH),
203
203
  this,
204
204
  );
205
205
  }
@@ -345,7 +345,7 @@ export class TraceProcessor {
345
345
 
346
346
  const entryToPush: LogEntry = {
347
347
  level: entry.level,
348
- message: entry.message,
348
+ message: entry.message ?? (entry.error ? (entry.error.message ?? String(entry.error)) : ''),
349
349
  context,
350
350
  timestamp: new Date(),
351
351
  meta: {