diff options
| author | Dax Raad <[email protected]> | 2025-05-30 16:39:45 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-30 16:43:42 -0400 |
| commit | 91a9e455e233e454df1cfc552f2ddbf7d9fbecb8 (patch) | |
| tree | 160f3be01f5153b4c6ce5d2114aa814ec5b16192 /js/src/util | |
| parent | c391c6d3f3ee4a041ab30f576aae0abfca8f7c9a (diff) | |
| download | opencode-91a9e455e233e454df1cfc552f2ddbf7d9fbecb8.tar.gz opencode-91a9e455e233e454df1cfc552f2ddbf7d9fbecb8.zip | |
sync
Diffstat (limited to 'js/src/util')
| -rw-r--r-- | js/src/util/log.ts | 3 |
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>) { |
