From d2ef43f2bb2a09f30c80e790a7f5a438b73d45a1 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Mon, 4 Jan 2021 10:31:52 -0400 Subject: [PATCH] Remove dev condition --- server/src/lib/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/lib/logger.js b/server/src/lib/logger.js index 0b4b759..d0aded2 100644 --- a/server/src/lib/logger.js +++ b/server/src/lib/logger.js @@ -1,7 +1,7 @@ import prisma from '../prisma' import { format, subDays } from 'date-fns' -const DAYS_TO_KEEP = process.env.NODE_ENV === 'production' ? 30 : 1 +const DAYS_TO_KEEP = 30 async function log({ level, tags = [], message = '', data }, store = true) { const now = new Date()