From 7c4c5f980a15e13e2a43a8583a652622370ec1dd Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 10 Jun 2026 16:27:23 -0500 Subject: [PATCH] refactor(opendock): changed the subModule for better logging --- backend/opendock/opendock.utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/opendock/opendock.utils.ts b/backend/opendock/opendock.utils.ts index 00e0aaf..b89d89c 100644 --- a/backend/opendock/opendock.utils.ts +++ b/backend/opendock/opendock.utils.ts @@ -12,7 +12,7 @@ export let odToken: ODToken = { }; export const getToken = async () => { - const log = createLogger({ module: "opendock", subModule: "releaseMonitor" }); + const log = createLogger({ module: "opendock", subModule: "auth" }); try { const { status, data } = await axios.post( `${process.env.OPENDOCK_URL}/auth/login`, @@ -29,7 +29,8 @@ export const getToken = async () => { odToken = { odToken: data.access_token, tokenDate: new Date() }; log.info({ odToken }, "Token added"); + return; } catch (e) { - log.error({ error: e }, "Error getting/refreshing token"); + log.error({ stack: e }, "Error getting/refreshing token"); } };