Skip to content

Commit 3f6fa5d

Browse files
authored
chore(issues): Log a warning instead of an error (#94117)
The message says it's not an error so let's log this as not an error. Fixes SENTRY-19C5
1 parent 357288d commit 3f6fa5d

File tree

1 file changed

+2
-5
lines changed
  • src/sentry/issues/auto_source_code_config

1 file changed

+2
-5
lines changed

src/sentry/issues/auto_source_code_config/task.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,10 @@ def process_error(error: ApiError, extra: dict[str, Any]) -> None:
151151
logger.warning("Github has blocked this org. We will not continue.", extra=extra)
152152
return
153153

154-
# Logging the exception and returning is better than re-raising the error
154+
# Logging the warning and returning is better than re-raising the error
155155
# Otherwise, API errors would not group them since the HTTPError in the stack
156156
# has unique URLs, thus, separating the errors
157-
logger.error(
158-
"Unhandled ApiError occurred. Nothing is broken. Investigate. Multiple issues grouped.",
159-
extra=extra,
160-
)
157+
logger.warning("Unhandled ApiError occurred. Multiple issues grouped.", extra=extra)
161158

162159

163160
def get_trees_for_org(

0 commit comments

Comments
 (0)