Skip to content

Commit

Permalink
chore: sentry로 status도 보내도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Aug 8, 2024
1 parent 890ee2a commit 7e4ee0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/utils/sendLogToSentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ const sendLogToSentry = ({level = 'error', error, errorBody}: SendLogToSentry) =
endpoint: error.endpoint,
url: window.location.href,
errorCode,
errorMessage: error.errorBody.message,
errorMessage: message,
status: error.status,
requestBody: JSON.stringify(error.requestBody),
method: error.status,
});

Sentry.captureMessage(`${errorCode}`);
Expand Down

0 comments on commit 7e4ee0c

Please sign in to comment.