Skip to content

Commit

Permalink
Merge pull request #98 from airbrake/chore/update-api-host
Browse files Browse the repository at this point in the history
update api host
  • Loading branch information
phumpal authored Mar 5, 2019
2 parents 8f41ef9 + 4c59539 commit c0d83a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ By default, airbrake will catch and send uncaught exceptions. To avoid this behv

Airbrake [Enterprise](https://airbrake.io/enterprise) and self-hosted alternatives, such as [Errbit](https://github.com/errbit/errbit), provide a compatible API.

You can configure a different endpoint than the default (`https://airbrake.io`) by either:
You can configure a different endpoint than the default (`https://api.airbrake.io`) by either:

* Setting an environment variable:

Expand Down Expand Up @@ -99,7 +99,7 @@ logger = airbrake.getLogger(api_key=*****, project_id=12345, environment='produc

The available options are:
- environment, defaults to env var `AIRBRAKE_ENVIRONMENT`
- host, defaults to env var `AIRBRAKE_HOST` or https://airbrake.io
- host, defaults to env var `AIRBRAKE_HOST` or https://api.airbrake.io
- root_directory, defaults to None
- timeout, defaults to 5. (Number of seconds before each request times out)
- send_uncaught_exc, defaults to True (Whether or not to send uncaught exceptions)
Expand Down
2 changes: 1 addition & 1 deletion airbrake/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
__summary__ = 'Python SDK for airbrake.io'
__author__ = 'BK Box, Sam Stavinoha'
__email__ = '[email protected]'
__version__ = '2.1.1'
__version__ = '2.1.2'
__keywords__ = ['airbrake', 'exceptions', 'airbrake.io']
__license__ = 'Apache License, Version 2.0'
__url__ = 'https://github.com/airbrake/airbrake-python'
Expand Down
2 changes: 1 addition & 1 deletion airbrake/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Airbrake(object):

# pylint: disable=too-many-instance-attributes

AIRBRAKE_HOST_DEFAULT = 'https://airbrake.io'
AIRBRAKE_HOST_DEFAULT = 'https://api.airbrake.io'
AIRBRAKE_TIMEOUT_DEFAULT = 5
KEYS_TO_FILTER = ["params", "environment", "session"]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def test_deploy_payload(self):
'v2.0')

expected_call_args = mock.call(
'https://airbrake.io/api/v4/projects/1234/deploys',
'https://api.airbrake.io/api/v4/projects/1234/deploys',
data='{"environment": "test",'
' "repository": "https://github.com/airbrake/airbrake",'
' "revision": "38748467ea579e7ae64f7815452307c9d05e05c5",'
Expand Down

0 comments on commit c0d83a0

Please sign in to comment.