mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-22 17:24:57 +01:00
tweak: fix [object Object] in logging (#1114)
This commit is contained in:
@@ -105,7 +105,7 @@ export namespace Log {
|
|||||||
...extra,
|
...extra,
|
||||||
})
|
})
|
||||||
.filter(([_, value]) => value !== undefined && value !== null)
|
.filter(([_, value]) => value !== undefined && value !== null)
|
||||||
.map(([key, value]) => `${key}=${value}`)
|
.map(([key, value]) => `${key}=${typeof value === "object" ? JSON.stringify(value) : value}`)
|
||||||
.join(" ")
|
.join(" ")
|
||||||
const next = new Date()
|
const next = new Date()
|
||||||
const diff = next.getTime() - last
|
const diff = next.getTime() - last
|
||||||
|
|||||||
Reference in New Issue
Block a user