Use a warning when settings failed to load

This commit is contained in:
Samuel Elliott 2018-03-22 16:41:20 +00:00
parent a3eeee9b57
commit eaeae7ad98
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 2 additions and 3 deletions

View File

@ -214,8 +214,7 @@ export default class {
}
} catch (err) {
// We don't care if this fails it either means that user config doesn't exist or there's something wrong with it so we revert to default config
Logger.info(this.moduleName, `Failed reading config for ${this.contentType} ${readConfig.info.name} in ${dirName}`);
Logger.err(this.moduleName, err);
Logger.warn(this.moduleName, [`Failed reading config for ${this.contentType} ${readConfig.info.name} in ${dirName}`, err]);
}
userConfig.config = defaultConfig.clone({ settings: userConfig.config });

View File

@ -61,7 +61,7 @@ export default new class Settings {
} catch (err) {
// There was an error loading settings
// This probably means that the user doesn't have any settings yet
Logger.err('Settings', err);
Logger.warn('Settings', ['Failed to load internal settings', err]);
}
}