Implement logger on pusher

This commit is contained in:
Alexis Faizeau 2021-11-08 19:05:25 +01:00
parent 6a195be814
commit dd89f12c2e
15 changed files with 263 additions and 72 deletions

View file

@ -2,6 +2,7 @@ import { createWriteStream } from "fs";
import { join, dirname } from "path";
import Busboy from "busboy";
import mkdirp from "mkdirp";
import log from "../../Services/Logger";
function formData(
contType: string,
@ -19,7 +20,7 @@ function formData(
filename?: (oldName: string) => string;
} = {}
) {
console.log("Enter form data");
log.info("Enter form data");
options.headers = {
"content-type": contType,
};