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