Skip to content

Commit 865b558

Browse files
committed
fix: add extended logging for errors
1 parent 5e53aec commit 865b558

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dispatch-handler/controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const dispatchHandlerController: UserRouteHandler = async (req, res) => {
7777
try {
7878
idToken = await decodeIdToken(body.idToken);
7979
} catch (e) {
80-
_logger.debug({ error: e }, "Failed to decode ID token");
80+
_logger.warn({ error: e }, "Failed to decode ID token");
8181
return res
8282
.status(400)
8383
.header("content-type", responseContentType)
@@ -96,7 +96,7 @@ export const dispatchHandlerController: UserRouteHandler = async (req, res) => {
9696
.json({ error: "Request blocked by policy" });
9797
}
9898
} catch (e) {
99-
_logger.debug({ error: e }, "Failed to evaluate policy");
99+
_logger.warn({ error: e }, "Failed to evaluate policy");
100100
return res
101101
.status(401)
102102
.header("content-type", responseContentType)
@@ -110,6 +110,7 @@ export const dispatchHandlerController: UserRouteHandler = async (req, res) => {
110110
inputs: body.inputs,
111111
});
112112
} catch (e) {
113+
_logger.warn({ error: e }, "Failed to send workflow dispatch");
113114
return res
114115
.status(500)
115116
.header("content-type", responseContentType)

0 commit comments

Comments
 (0)