Use a warning when settings failed to load
This commit is contained in:
parent
a3eeee9b57
commit
eaeae7ad98
|
@ -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 });
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue