♻️Removed console.log from backend node + error serializer

This commit is contained in:
Anton SHEPILOV
2024-11-01 11:51:06 +01:00
committed by Anton Shepilov
parent 01744274eb
commit da9736e23b
19 changed files with 121 additions and 139 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { mkdirSync, existsSync, promises as fsPromise, createWriteStream, readFileSync } from "fs";
import { Readable } from "stream";
import { v4 as uuidv4 } from "uuid";
import { logger } from "../core/platform/framework";
const { unlink } = fsPromise;
@@ -50,7 +51,7 @@ export const writeToTemporaryFile = async (input: Readable, extension: string):
return temporaryFilePath;
} catch (error) {
console.debug(error);
logger.debug(error);
throw Error(error);
}