From 90d0760352bf9d77dd2c1c3c449f1e7f4a5a4056 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Thu, 13 Mar 2025 15:41:43 -0500 Subject: [PATCH] fix(auth): proper logging for errors in role check --- server/services/auth/utils/roleCheck.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/services/auth/utils/roleCheck.ts b/server/services/auth/utils/roleCheck.ts index 3c2fa43..d97cba4 100644 --- a/server/services/auth/utils/roleCheck.ts +++ b/server/services/auth/utils/roleCheck.ts @@ -35,10 +35,10 @@ export const areRolesIn = async () => { `${JSON.stringify(newRole)}, "Roles were just added due to missing them on server startup"` ); } catch (error) { - createLog("error", "lst", "auth", "There was an error adding new roles to the db"); + createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`); } } } catch (error) { - createLog("error", "lst", "auth", "There was an error getting or adding new roles"); + createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`); } };