From a7445c3520dd3d3b2c263e1f39b20f973c9ff238 Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Sat, 9 Jul 2022 13:22:36 +0200 Subject: [PATCH] ignore logger file --- server/src/logger.ts | 12 +++--------- server/vite.config.ts | 6 +++--- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/server/src/logger.ts b/server/src/logger.ts index 6fa3a75..9130936 100644 --- a/server/src/logger.ts +++ b/server/src/logger.ts @@ -1,13 +1,7 @@ -import { createWriteStream } from "fs"; -import pino, { multistream } from "pino"; - -// const streams = [ -// { stream: process.stdout }, -// { stream: createWriteStream("/logs/logfile.log", { flags: "a" }) }, -// ]; - -// export default pino({}, multistream(streams)); +import pino from "pino"; +/* c8 ignore start */ export default pino({ level: process.env.LOG_LEVEL || "info", }); +/* c8 ignore stop */ diff --git a/server/vite.config.ts b/server/vite.config.ts index f61191a..6c90798 100644 --- a/server/vite.config.ts +++ b/server/vite.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ - test: { - // ... - }, + test: { + // ... + }, });