Skip to content

Commit

Permalink
Merge branch 'release/v0.20.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed May 2, 2024
2 parents 60fd847 + daba2c8 commit cf95a4f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.20.4",
"version": "0.20.5",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down
4 changes: 4 additions & 0 deletions src/common/data/object.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import exp from 'node:constants'
import { useDispose } from '../dispose-defer'
import { Emitter } from '../msg/emitter'
import { isNotNull } from './is'
Expand Down Expand Up @@ -288,5 +289,8 @@ describe('objectPlain', () => {
},
}
`)

const result2 = objectPlain(obj)
expect(objectPlain(result2)).toEqual(result2)
})
})
9 changes: 8 additions & 1 deletion src/common/log/log-memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ export function LoggerMemoryHandler(

msg.timestamp ??= getTimestamp()

const m = objectPlain(msg, { maxDepth, errorTrace })
const m = objectPlain(msg, {
maxDepth,
errorTrace,
filter(obj) {
return !Object.hasOwn(obj, '__SENTRY__')
},
})

if (compact === true)
(messages as LogMessageCompact[]).push([m.timestamp, m.level, m.name, ...m.messages])
else
Expand Down

0 comments on commit cf95a4f

Please sign in to comment.