From 1c18282cfed265faa06e05620fe6850620fc753d Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 30 Oct 2023 15:14:26 +0000 Subject: [PATCH] Log profile save action into console window, not log file --- project/src/servers/SaveServer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/servers/SaveServer.ts b/project/src/servers/SaveServer.ts index a82324f6..998eb85f 100644 --- a/project/src/servers/SaveServer.ts +++ b/project/src/servers/SaveServer.ts @@ -192,11 +192,11 @@ export class SaveServer for (const callback in this.onBeforeSaveCallbacks) { const previous = this.profiles[sessionID]; - try + try { this.profiles[sessionID] = this.onBeforeSaveCallbacks[callback](this.profiles[sessionID]); } - catch (error) + catch (error) { this.logger.error(this.localisationService.getText("profile_save_callback_error", { callback, error })); this.profiles[sessionID] = previous; @@ -210,7 +210,7 @@ export class SaveServer this.saveMd5[sessionID] = String(fmd5); // save profile to disk this.vfs.writeFile(filePath, jsonProfile); - this.logger.info(this.localisationService.getText("profile_saved", sessionID)); + this.logger.debug(this.localisationService.getText("profile_saved", sessionID), true); } }