From 4c595398e22790b124bf28d5bbe0b14c5a0a042e Mon Sep 17 00:00:00 2001 From: Patrick Humpal Date: Fri, 1 Mar 2019 13:10:21 -0800 Subject: [PATCH] Use api.airbrake.io instead of airbrake.io --- README.md | 4 ++-- airbrake/__about__.py | 2 +- airbrake/notifier.py | 2 +- tests/test_notifier.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index adff65e..417805b 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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) diff --git a/airbrake/__about__.py b/airbrake/__about__.py index 79384d8..5f11ab2 100644 --- a/airbrake/__about__.py +++ b/airbrake/__about__.py @@ -16,7 +16,7 @@ __summary__ = 'Python SDK for airbrake.io' __author__ = 'BK Box, Sam Stavinoha' __email__ = 'samuel.stavinoha@rackspace.com' -__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' diff --git a/airbrake/notifier.py b/airbrake/notifier.py index 3e2346d..4d26f5d 100644 --- a/airbrake/notifier.py +++ b/airbrake/notifier.py @@ -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"] diff --git a/tests/test_notifier.py b/tests/test_notifier.py index 0b3021a..70515a9 100644 --- a/tests/test_notifier.py +++ b/tests/test_notifier.py @@ -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",'