♻️Removed console.log from backend node + error serializer
This commit is contained in:
committed by
Anton Shepilov
parent
01744274eb
commit
da9736e23b
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user