From 630fd6b800c19f076a3e4add06b285db0dac04cc Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Sun, 28 Apr 2024 16:35:13 +0100 Subject: [PATCH] ci(log): disable exception logs --- .env.test | 2 +- src/config/logging.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.test b/.env.test index f5862d4..5017767 100644 --- a/.env.test +++ b/.env.test @@ -10,7 +10,7 @@ APP_DOCUMENTATION=${APP_URL}/docs APP_SOURCE=https://github.com/AthennaIO LOG_HTTP=false -LOG_CHANNEL=stack +LOG_CHANNEL=discard DB_CONNECTION=postgres DB_HOST=localhost diff --git a/src/config/logging.ts b/src/config/logging.ts index 7968b93..6aa4959 100644 --- a/src/config/logging.ts +++ b/src/config/logging.ts @@ -19,8 +19,8 @@ export default { exception: { level: 'trace', formatter: 'none', - driver: 'console', - // driver: Env('APP_ENV') === 'test' ? 'null' : 'console', + // driver: 'console', + driver: Env('APP_ENV') === 'test' ? 'null' : 'console', streamType: 'stderr' },