mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Remove duplicative logging
These log calls either duplicated the generic error renderer logging or neighbouring log calls
This commit is contained in:
parent
5c8e01c034
commit
3be8f1b194
@ -118,7 +118,6 @@ export class SharingMWs {
|
|||||||
);
|
);
|
||||||
return next();
|
return next();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn(err);
|
|
||||||
return next(
|
return next(
|
||||||
new ErrorDTO(
|
new ErrorDTO(
|
||||||
ErrorCodes.GENERAL_ERROR,
|
ErrorCodes.GENERAL_ERROR,
|
||||||
|
@ -42,7 +42,6 @@ export class ThumbnailGeneratorMWs {
|
|||||||
ThumbnailGeneratorMWs.addThInfoToPhotos(cw.searchResult.media);
|
ThumbnailGeneratorMWs.addThInfoToPhotos(cw.searchResult.media);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
|
||||||
return next(
|
return next(
|
||||||
new ErrorDTO(
|
new ErrorDTO(
|
||||||
ErrorCodes.SERVER_ERROR,
|
ErrorCodes.SERVER_ERROR,
|
||||||
@ -120,7 +119,6 @@ export class ThumbnailGeneratorMWs {
|
|||||||
req.resultPipe = await PhotoProcessing.generatePersonThumbnail(person);
|
req.resultPipe = await PhotoProcessing.generatePersonThumbnail(person);
|
||||||
return next();
|
return next();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
|
||||||
return next(
|
return next(
|
||||||
new ErrorDTO(
|
new ErrorDTO(
|
||||||
ErrorCodes.THUMBNAIL_GENERATION_ERROR,
|
ErrorCodes.THUMBNAIL_GENERATION_ERROR,
|
||||||
|
@ -110,7 +110,6 @@ export abstract class FileJob<S extends { indexedOnly?: boolean } = { indexedOnl
|
|||||||
this.Progress.Skipped++;
|
this.Progress.Skipped++;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
|
||||||
Logger.error(
|
Logger.error(
|
||||||
LOG_TAG,
|
LOG_TAG,
|
||||||
'Error during processing file:' + filePath + ', ' + e.toString()
|
'Error during processing file:' + filePath + ', ' + e.toString()
|
||||||
|
@ -37,8 +37,6 @@ export class ErrorRouter {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(err);
|
|
||||||
|
|
||||||
// Flush out the stack to the console
|
// Flush out the stack to the console
|
||||||
Logger.error('Unexpected error:');
|
Logger.error('Unexpected error:');
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user