Skip to content

Commit

Permalink
fix(log): log option are now configured correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu4k committed May 23, 2020
1 parent 62c32ca commit 3dcdc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ function formatter(record: LogRecord): string {
*/
function logLevel(config: DenonConfig): LogLevelName {
let level: LogLevelName = DEFAULT_LEVEL;
if (config.debug) level = DEBUG_LEVEL;
if (config.quiet) level = QUIET_LEVEL;
if (config.logger.debug) level = DEBUG_LEVEL;
if (config.logger.quiet) level = QUIET_LEVEL;
return level;
}

Expand Down

0 comments on commit 3dcdc9a

Please sign in to comment.