Skip to content

Commit

Permalink
Merge branch 'master' into sam/25_01_14/fix/use-dbsyncconfig-type
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel authored Jan 14, 2025
2 parents c84f34a + 95dfeda commit 7e575e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fleet/lib/supervisor/supervisor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { logger } from '../utils/logger.js';
import * as nodes from '../models/nodes.js';
import * as deployments from '../models/deployments.js';
import * as nodeConfigOverrides from '../models/node_config_overrides.js';
import { Err, Ok, retryWithBackoff } from '@nangohq/utils';
import { Err, errorToObject, Ok, retryWithBackoff } from '@nangohq/utils';
import type { Result } from '@nangohq/utils';
import { FleetError } from '../utils/errors.js';
import type { Node, NodeConfigOverride } from '../types.js';
Expand Down 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:', result.error, errorToObject(result.error.cause));
}
}
);
Expand Down

0 comments on commit 7e575e5

Please sign in to comment.