From 2b26b3744be0fbbed4428c29715ee9e3fc379132 Mon Sep 17 00:00:00 2001 From: sarayourfriend Date: Sun, 31 Mar 2024 09:28:11 +1100 Subject: [PATCH] Revert "Remove duplicative logging" This reverts commit 25fb0ddb531a29dcc0fcefeedb986a1451d669b6. --- src/backend/middlewares/SharingMWs.ts | 1 + src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts | 2 ++ src/backend/model/jobs/jobs/FileJob.ts | 1 + src/backend/routes/ErrorRouter.ts | 2 ++ 4 files changed, 6 insertions(+) diff --git a/src/backend/middlewares/SharingMWs.ts b/src/backend/middlewares/SharingMWs.ts index 0776a032..e4552561 100644 --- a/src/backend/middlewares/SharingMWs.ts +++ b/src/backend/middlewares/SharingMWs.ts @@ -118,6 +118,7 @@ export class SharingMWs { ); return next(); } catch (err) { + console.warn(err); return next( new ErrorDTO( ErrorCodes.GENERAL_ERROR, diff --git a/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts b/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts index fc65efd0..a8943c09 100644 --- a/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts +++ b/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts @@ -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, diff --git a/src/backend/model/jobs/jobs/FileJob.ts b/src/backend/model/jobs/jobs/FileJob.ts index bce773cc..2159973b 100644 --- a/src/backend/model/jobs/jobs/FileJob.ts +++ b/src/backend/model/jobs/jobs/FileJob.ts @@ -110,6 +110,7 @@ export abstract class FileJob