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); diff --git a/package.json b/package.json index 1a30f40f6d..dbe9c17fe3 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"