Skip to content

Commit

Permalink
Add logging to cdogs response error (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot authored Apr 9, 2024
1 parent 581ecf3 commit 36763e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dops/src/modules/common/cdogs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class CdogsService {
if (error.response) {
const errorData = error.response.data;
this.logger.error(
`Error response from CDOGS: ${JSON.stringify(errorData, null, 2)}`,
`Error response from CDOGS - status: ${error.response?.status} data: ${JSON.stringify(errorData, null, 2)}`,
);
} else {
this.logger.error(error?.message, error?.stack);
Expand Down

0 comments on commit 36763e2

Please sign in to comment.