Skip to content

Commit

Permalink
log the entire error on all else
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya committed Nov 30, 2024
1 parent 2adc3ea commit 0b3bd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/data_usage/server/services/autoops_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class AutoOpsAPIService {
} else {
// Something happened in setting up the request that triggered an Error
this.logger.error(
`${AUTO_OPS_AGENT_CREATION_PREFIX} to be created ${errorLogCodeCause} ${requestConfigDebugStatus}`,
`${AUTO_OPS_AGENT_CREATION_PREFIX} to be created ${errorLogCodeCause} ${requestConfigDebugStatus} ${error.toJSON()}`,
errorMetadataWithRequestConfig
);
throw new AutoOpsError(
Expand Down

0 comments on commit 0b3bd34

Please sign in to comment.