Skip to content

Commit

Permalink
Compatibility to cf workers
Browse files Browse the repository at this point in the history
  • Loading branch information
bkniffler authored and tigercosmos committed Feb 10, 2024
1 parent 213b7d4 commit d01d106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Logger {
this.name = name || ""

// set level from env
const level = process.env.LOGGER;
const level = typeof process !== 'undefined' ? process.env.LOGGER : undefined;
if (this.isLevelValid(level)) {
this.level = level;
}
Expand Down

0 comments on commit d01d106

Please sign in to comment.