From 104edc75396a09821dc18a00fe7664f2a70551e1 Mon Sep 17 00:00:00 2001 From: "Joao Victor G. Rodrigues" Date: Thu, 28 Nov 2024 06:56:26 -0400 Subject: [PATCH 1/3] stringify error object before logging (#7466) * stringify error object before logging * use handleError function * remove unused code --- app/api/files/routes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/api/files/routes.ts b/app/api/files/routes.ts index d356448d90..8bb7f02d0f 100644 --- a/app/api/files/routes.ts +++ b/app/api/files/routes.ts @@ -6,7 +6,6 @@ import { CSVLoader } from 'api/csv'; import entities from 'api/entities'; import { processDocument } from 'api/files/processDocument'; import { uploadMiddleware } from 'api/files/uploadMiddleware'; -import { legacyLogger } from 'api/log'; import { permissionsContext } from 'api/permissions/permissionsContext'; import { validateAndCoerceRequest } from 'api/utils/validateRequest'; import { EntitySchema } from 'shared/types/entityType'; @@ -78,8 +77,7 @@ export default (app: Application) => { res.json(savedFile); req.emitToSessionSocket('documentProcessed', req.body.entity); } catch (err) { - legacyLogger.error(err); - legacyLogger.debug(err); + handleError(err); const [file] = await files.get({ filename: req.file.filename }); res.json(file); req.emitToSessionSocket('conversionFailed', req.body.entity); From d686555b66eabcb2a3a73005204110cc69dc81bb Mon Sep 17 00:00:00 2001 From: Daneryl Date: Thu, 28 Nov 2024 11:56:34 +0100 Subject: [PATCH 2/3] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e2e53249a..7e1736cb5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uwazi", - "version": "1.191.9", + "version": "1.191.10", "description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.", "keywords": [ "react" From 14e2d9340335430e073eea4c28fe64c8d0ecd02b Mon Sep 17 00:00:00 2001 From: Daneryl Date: Thu, 28 Nov 2024 11:56:39 +0100 Subject: [PATCH 3/3] Merge back from production and Bump rc version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b44dccddb3..902c89b4d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uwazi", - "version": "1.192.0-rc9", + "version": "1.192.0-rc10", "description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.", "keywords": [ "react"