Skip to content

Commit

Permalink
Update bugsnag
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed May 1, 2021
1 parent 219d559 commit 14cfda8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class BugsnagErrorHandler(ErrorHandler):
def default(self, request, exception):
if self._should_notify(exception):
bugsnag.notify(exception, meta_data={"request": request.url})
bugsnag.notify(exception, metadata={"request": request.url})
return super().default(request, exception)

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion app/utils/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def track(request, lines: list[str]):
settings.TRACK_REQUESTS = False
bugsnag.notify(
RuntimeError(f"Disabled tracking after {response.status} response"),
meta_data={"request": request.url, "message": message},
metadata={"request": request.url, "message": message},
)


Expand Down
9 changes: 5 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ furl = "^2.1.1"
minilog = "^2.0"

# Production
bugsnag = "^4.0"
bugsnag = "^4.0.3"
gunicorn = "^20.1"
uvicorn = "~0.13.4"

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ aiohttp==3.7.4.post0; python_version >= "3.6"
aiopath==0.4.9; python_version >= "3.7"
async-timeout==3.0.1; python_full_version >= "3.5.3" and python_version >= "3.6"
attrs==20.3.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
bugsnag==4.0.2; python_version >= "3.5" and python_version < "4"
bugsnag==4.0.3; python_version >= "3.5" and python_version < "4"
cached-property==1.5.2; python_version >= "3.7" and python_version < "4.0"
caio==0.8.0; python_version >= "3.7" and python_version < "4"
certifi==2020.12.5; python_version >= "3.6"
Expand Down

0 comments on commit 14cfda8

Please sign in to comment.