From 85209c69ff01b7f0f811205eaff21d2ba52a9b56 Mon Sep 17 00:00:00 2001 From: Devin Binnie Date: Tue, 29 Aug 2023 13:28:13 -0400 Subject: [PATCH] [MM-54170] Automatically set the logging level to info if not specified --- src/common/config/defaultPreferences.ts | 1 + src/common/log.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/common/config/defaultPreferences.ts b/src/common/config/defaultPreferences.ts index 2a4c22698f8..5ef4e379f79 100644 --- a/src/common/config/defaultPreferences.ts +++ b/src/common/config/defaultPreferences.ts @@ -48,6 +48,7 @@ const defaultPreferences: ConfigV3 = { lastActiveTeam: 0, downloadLocation: getDefaultDownloadLocation(), startInFullscreen: false, + logLevel: 'info', }; export default defaultPreferences; diff --git a/src/common/log.ts b/src/common/log.ts index 6e718c433c7..6daf6147536 100644 --- a/src/common/log.ts +++ b/src/common/log.ts @@ -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[]) => {