Skip to content

Commit 483ef1a

Browse files
HugoRCDclaude
andcommitted
fix: add missing info and warn to noopLogger
The noopLogger was missing info() and warn() methods required by the RequestLogger interface, causing runtime crashes when enabled: false. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 105ebe6 commit 483ef1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/evlog/src/logger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ export const log: Log = {
240240
const noopLogger: RequestLogger = {
241241
set() {},
242242
error() {},
243+
info() {},
244+
warn() {},
243245
emit() {
244246
return null
245247
},

0 commit comments

Comments
 (0)