Skip to content

Commit b91f554

Browse files
Adds logging to jira for us to further filter invalid request errors
1 parent 41c42e6 commit b91f554

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sentry/integrations/jira/integration.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,14 @@ def raise_error(self, exc: Exception, identity: Identity | None = None) -> NoRet
986986
error_fields = self.error_fields_from_json(exc.json)
987987
if error_fields is not None:
988988
raise IntegrationFormError(error_fields).with_traceback(sys.exc_info()[2])
989+
990+
logger.warning(
991+
"sentry.jira.raise_error.api_invalid_request_error",
992+
extra={
993+
"exception_type": type(exc).__name__,
994+
"exception_message": str(exc),
995+
},
996+
)
989997
raise IntegrationConfigurationError(exc.text) from exc
990998
super().raise_error(exc, identity=identity)
991999

0 commit comments

Comments
 (0)