From db926a4146192c03a3e023a5a9e9b4d570bc21a7 Mon Sep 17 00:00:00 2001 From: tak-s Date: Sun, 4 Aug 2024 15:05:53 +0900 Subject: [PATCH 1/2] set LOGGING_LEVEL to environment --- docker-compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4974e8b8..ffcbc4ee 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -29,6 +29,7 @@ x-common-service: &common-service - SCRAPING_BEE_API_KEY=${SCRAPING_BEE_API_KEY} - HOST=${HOST:-0.0.0.0} - SELF_HOSTED_WEBHOOK_URL=${SELF_HOSTED_WEBHOOK_URL} + - LOGGING_LEVEL=${LOGGING_LEVEL} extra_hosts: - "host.docker.internal:host-gateway" From af9bc5c8bbe30d0c271697be95a58c19895f132e Mon Sep 17 00:00:00 2001 From: tak-s Date: Sun, 4 Aug 2024 15:09:36 +0900 Subject: [PATCH 2/2] Suppressed repetitive logs --- apps/api/src/services/supabase.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/api/src/services/supabase.ts b/apps/api/src/services/supabase.ts index d34f7b52..70ada12b 100644 --- a/apps/api/src/services/supabase.ts +++ b/apps/api/src/services/supabase.ts @@ -36,17 +36,9 @@ export const supabase_service: SupabaseClient = new Proxy( new SupabaseService(), { get: function (target, prop, receiver) { - if (process.env.USE_DB_AUTHENTICATION === "false") { - Logger.debug( - "Attempted to access Supabase client when it's not configured." - ); - } const client = target.getClient(); // If the Supabase client is not initialized, intercept property access to provide meaningful error feedback. if (client === null) { - Logger.error( - "Attempted to access Supabase client when it's not configured." - ); return () => { throw new Error("Supabase client is not configured."); };