From 442c89271caed59ec9bd175c944f0289c3009244 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 23 Feb 2024 16:31:20 +0100 Subject: [PATCH] logs --- src/auth.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth.ts b/src/auth.ts index 74485cb5..febe1e5f 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -12,7 +12,9 @@ const serverOptions = (mainHandler: Main): ServerOptions => { UserAuthGuard: async (authHeader) => { return mainHandler.appUserManager.DecodeUserToken(stripBearer(authHeader)) }, GuestAuthGuard: async (_) => ({}), metricsCallback: metrics => mainHandler.settings.recordPerformance ? mainHandler.metricsManager.AddMetrics(metrics) : null, - allowCors: true + allowCors: true, + logMethod: true, + logBody: true //throwErrors: true } }