Skip to content

Commit

Permalink
[MM-54170] Automatically set the logging level to info if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbinnie committed Aug 29, 2023
1 parent 9c3febd commit 85209c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/config/defaultPreferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const defaultPreferences: ConfigV3 = {
lastActiveTeam: 0,
downloadLocation: getDefaultDownloadLocation(),
startInFullscreen: false,
logLevel: 'info',
};

export default defaultPreferences;
3 changes: 3 additions & 0 deletions src/common/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export class Logger {

constructor(...prefixes: string[]) {
this.prefixes = this.shortenPrefixes(...prefixes);

// Start on info by default
setLoggingLevel('info');
}

withPrefix = (...prefixes: string[]) => {
Expand Down

0 comments on commit 85209c6

Please sign in to comment.