Skip to content

Commit

Permalink
log cause
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Sep 26, 2024
1 parent e317e46 commit 001367c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/uploadthing/src/internal/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,10 @@ const handleUploadAction = (opts: {
)
: Effect.logError(
"Failed to forward callback request from dev stream",
).pipe(Effect.annotateLogs("error", err)),
).pipe(
Effect.annotateLogs("error", err),
Effect.annotateLogs("cause", err.cause),
),
}),
Effect.ignoreLogged,
),
Expand Down
1 change: 0 additions & 1 deletion packages/uploadthing/src/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const createRouteHandler = <TRouter extends FileRouter>(
(req) => Effect.succeed({ req, res: undefined, event: undefined }),
(req) => Effect.succeed(req),
opts,

"nextjs-app",
);
return { POST: handler, GET: handler };
Expand Down

0 comments on commit 001367c

Please sign in to comment.