Skip to content

Commit

Permalink
fix(deps): deprecation of logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Feb 29, 2024
1 parent 0c53ce5 commit 5f1f015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bids-validator/src/deps/logger.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export {
ConsoleHandler,
critical,
debug,
error,
getLogger,
info,
Logger,
LogLevelNames,
LogLevels,
setup,
warning,
warn,
} from "std/log/mod.ts"
export { ConsoleHandler } from "std/log/console_handler.ts"
export { LogLevelNames } from "std/log/levels.ts"
export type { LevelName } from "std/log/mod.ts"
2 changes: 1 addition & 1 deletion bids-validator/src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const loggerProxyHandler = {
const callerLocation = parseStack(stack)
logger.debug(`Logger invoked at "${callerLocation}"`)
}
const logFunc = logger[prop] as typeof logger.warning
const logFunc = logger[prop] as typeof logger.warn
return logFunc.bind(logger)
},
}
Expand Down

0 comments on commit 5f1f015

Please sign in to comment.