diff --git a/background.ts b/background.ts index 5840658e4bf..3de305f7daf 100644 --- a/background.ts +++ b/background.ts @@ -143,6 +143,12 @@ mainEvents.on('settings-update', async(newSettings) => { } k8smanager.debug = runInDebugMode; + if (gone) { + console.debug('Suppressing settings-update because app is quitting'); + + return; + } + await setPathManager(newSettings.application.pathManagementStrategy); await pathManager.enforce(); diff --git a/pkg/rancher-desktop/utils/logging.ts b/pkg/rancher-desktop/utils/logging.ts index d8f24c78373..8c369e331ac 100644 --- a/pkg/rancher-desktop/utils/logging.ts +++ b/pkg/rancher-desktop/utils/logging.ts @@ -158,7 +158,7 @@ export class Log { } protected logWithDate(method: consoleKey, message: any, optionalParameters: any[]) { - this.console[method](`%s: ${ message }`, new Date(), ...optionalParameters); + this.console[method](`%s: ${ message }`, new Date().toISOString(), ...optionalParameters); } async sync() {