Skip to content

Commit

Permalink
fix: logger error
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jan 26, 2024
1 parent 91f14e4 commit ce6aca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-guests-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-core": patch
---

Using anylogger caused errors when calling without a level
1 change: 1 addition & 0 deletions packages/core/lib/defaultLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function factory({ console = true, errorFilename = null, filename = null, level
return ((<any>logger)[method] || logger.debug)(...args)
}
}
facade.log = facade.debug
return facade
}

Expand Down

0 comments on commit ce6aca4

Please sign in to comment.