Skip to content

Commit

Permalink
fix(fleet): render error cause is swallowed by the logger
Browse files Browse the repository at this point in the history
using `errorToObject` when logging error in fleet supervisor
  • Loading branch information
TBonnin committed Jan 14, 2025
1 parent 145f7eb commit 39fd31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fleet/lib/supervisor/supervisor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class Supervisor {
const result = await this.execute(operation);
if (result.isErr()) {
operationSpan?.setTag('error', result.error);
logger.error('Failed to execute operation:', result.error, result.error.cause);
logger.error('Failed to execute operation:', { error: result.error, cause: result.error.cause });
}
}
);
Expand Down

0 comments on commit 39fd31d

Please sign in to comment.