Skip to content

Commit a6684f6

Browse files
committed
fix: include cause in failEnvironmentCloudInternalError log output
The structured cause was passed to EnvironmentHttpInternalServerError but omitted from the Effect.logError call, so relay and secret-store failures lost the full cause chain in server logs (the HTTP response schema only serializes _tag and message, not cause). Re-add { cause } to the log call to match the pattern used by failEnvironmentInternal in auth/http.ts.
1 parent fe10a0b commit a6684f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/src/cloud/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const appendCloudCredentialResponseHeaders = HttpEffect.appendPreResponseHandler
201201
const failEnvironmentCloudInternalError =
202202
(message: string) =>
203203
(cause: unknown): Effect.Effect<never, EnvironmentHttpInternalServerError> =>
204-
Effect.logError(message).pipe(
204+
Effect.logError(message, { cause }).pipe(
205205
Effect.flatMap(() => Effect.fail(new EnvironmentHttpInternalServerError({ message, cause }))),
206206
);
207207

0 commit comments

Comments
 (0)