Поправки логирования
This commit is contained in:
@@ -25,6 +25,7 @@ class AppLogger {
|
||||
loggerParams = [
|
||||
{log: 'ConsoleLog'},
|
||||
{log: 'FileLog', fileName: `${config.logDir}/${config.name}.log`},
|
||||
{log: 'FileLog', fileName: `${config.logDir}/${config.name}.err.log`, exclude: [LM_OK, LM_INFO]},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -74,8 +74,7 @@ class ReaderWorker {
|
||||
try {
|
||||
decompFiles = await this.decomp.decompressNested(downloadedFilename, decompDir);
|
||||
} catch (e) {
|
||||
if (this.config.branch == 'development')
|
||||
console.error(e);
|
||||
log(LM_ERR, e.stack);
|
||||
throw new Error('Ошибка распаковки');
|
||||
}
|
||||
wState.set({progress: 100});
|
||||
|
||||
Reference in New Issue
Block a user