Skip to content

Commit

Permalink
Merge branch 'release/v0.25.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Oct 19, 2024
2 parents 73f362d + d5b5b08 commit 5402459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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.25.2",
"version": "0.25.3",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down
5 changes: 3 additions & 2 deletions src/common/log/log-memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ export function LoggerMemoryHandler(
errorTrace?: boolean
limit?: number
maxDepth?: number
keepAsIs?: (v: any) => boolean
},
): LogHandler {
const { level = undefined, filter = undefined, compact = false, messages = [], errorTrace = false, maxDepth = 20 } = opt
const { level = undefined, filter = undefined, compact = false, messages = [], errorTrace = false, maxDepth = 20, keepAsIs } = opt
const matchesNamespace = useNamespaceFilter(filter)
const matchesLevel = useLevelFilter(level)

Expand All @@ -35,7 +36,7 @@ export function LoggerMemoryHandler(
const m = objectPlain(msg, {
maxDepth,
errorTrace,
keepAsIs: v => (v instanceof Error) || (typeof ErrorEvent !== 'undefined' && v instanceof ErrorEvent),
keepAsIs, // : v => (v instanceof Error) || (typeof ErrorEvent !== 'undefined' && v instanceof ErrorEvent),
})

if (compact === true)
Expand Down

0 comments on commit 5402459

Please sign in to comment.