From 3be8f1b194f63fd7644b565f54290c93cfcd5c0d Mon Sep 17 00:00:00 2001 From: sarayourfriend Date: Fri, 29 Mar 2024 17:43:20 +1100 Subject: [PATCH] Remove duplicative logging These log calls either duplicated the generic error renderer logging or neighbouring log calls --- 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 deletions(-) diff --git a/src/backend/middlewares/SharingMWs.ts b/src/backend/middlewares/SharingMWs.ts index e4552561..0776a032 100644 --- a/src/backend/middlewares/SharingMWs.ts +++ b/src/backend/middlewares/SharingMWs.ts @@ -118,7 +118,6 @@ 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 a8943c09..fc65efd0 100644 --- a/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts +++ b/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.ts @@ -42,7 +42,6 @@ export class ThumbnailGeneratorMWs { ThumbnailGeneratorMWs.addThInfoToPhotos(cw.searchResult.media); } } catch (error) { - console.error(error); return next( new ErrorDTO( ErrorCodes.SERVER_ERROR, @@ -120,7 +119,6 @@ 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 2159973b..bce773cc 100644 --- a/src/backend/model/jobs/jobs/FileJob.ts +++ b/src/backend/model/jobs/jobs/FileJob.ts @@ -110,7 +110,6 @@ export abstract class FileJob