summaryrefslogtreecommitdiffhomepage
path: root/js/src/util
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-30 16:39:45 -0400
committerDax Raad <[email protected]>2025-05-30 16:43:42 -0400
commit91a9e455e233e454df1cfc552f2ddbf7d9fbecb8 (patch)
tree160f3be01f5153b4c6ce5d2114aa814ec5b16192 /js/src/util
parentc391c6d3f3ee4a041ab30f576aae0abfca8f7c9a (diff)
downloadopencode-91a9e455e233e454df1cfc552f2ddbf7d9fbecb8.tar.gz
opencode-91a9e455e233e454df1cfc552f2ddbf7d9fbecb8.zip
sync
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/log.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/util/log.ts b/js/src/util/log.ts
index abaddfa37..34707b136 100644
--- a/js/src/util/log.ts
+++ b/js/src/util/log.ts
@@ -38,9 +38,10 @@ export namespace Log {
...tags,
...extra,
})
+ .filter(([_, value]) => value !== undefined && value !== null)
.map(([key, value]) => `${key}=${value}`)
.join(" ");
- return [new Date().toISOString(), prefix, message].join(" ") + "\n";
+ return [new Date().toISOString(), prefix, message].filter(Boolean).join(" ") + "\n";
}
const result = {
info(message?: any, extra?: Record<string, any>) {