From 591d49d2665a3550964732148c94e6274eaabff7 Mon Sep 17 00:00:00 2001 From: Oj Date: Mon, 14 Feb 2022 08:17:02 +0000 Subject: [PATCH] [Settings] Clean up logging --- src/utils/Settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/Settings.js b/src/utils/Settings.js index 201101d..9c9a44d 100644 --- a/src/utils/Settings.js +++ b/src/utils/Settings.js @@ -15,7 +15,7 @@ class Settings { // Heavily based on original for compat, but simplified and twe this.lastModified = this.getLastModified(); - log('AppSettings', 'Loaded settings.json with path', this.path, 'with settings', this.settings, 'and last modified', this.lastModified); + log('AppSettings', this.path, this.settings); } getLastModified() { @@ -36,7 +36,7 @@ class Settings { // Heavily based on original for compat, but simplified and twe save() { if (this.lastModified && this.lastModified !== this.getLastModified()) { // File was last modified after Settings was made, so was externally edited therefore we don't save over - log('AppSettings', 'Refusing to save settings.json due to last modified date mismatch'); + log('AppSettings', 'Modified date mismatch'); return; } @@ -53,7 +53,7 @@ class Settings { // Heavily based on original for compat, but simplified and twe log('AppSettings', 'Saved', this.path); } catch (e) { - log('AppSettings', 'Failed to save', this.path, e); + log('AppSettings', 'Failed', this.path, e); } }