diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-11-07 16:25:20 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-11-07 16:25:20 +0300 |
commit | 5725f500a11c23707426d3b79376e74d8d802920 (patch) | |
tree | e62dad571e5be63d82b86cb390ed8d7d421091b9 | |
parent | 487778f6774950a6fa6074ebefd137c275514940 (diff) |
Blender ID: updated to latest development version
-rw-r--r-- | blender_id/CHANGELOG.md | 1 | ||||
-rw-r--r-- | blender_id/communication.py | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/blender_id/CHANGELOG.md b/blender_id/CHANGELOG.md index 94b21376..efda8c80 100644 --- a/blender_id/CHANGELOG.md +++ b/blender_id/CHANGELOG.md @@ -5,6 +5,7 @@ - Require Blender 2.80+. - API change: `blender_id.get_subclient_user_id()` now returns `''` instead of `None` when the user is not logged in. +- Log which Blender ID instance is communicated with. # Version 1.5 (released 2018-07-03) diff --git a/blender_id/communication.py b/blender_id/communication.py index 5572b637..9960c338 100644 --- a/blender_id/communication.py +++ b/blender_id/communication.py @@ -55,7 +55,12 @@ def blender_id_endpoint(endpoint_path=None): import os import urllib.parse - base_url = os.environ.get('BLENDER_ID_ENDPOINT', 'https://www.blender.org/id/') + base_url = os.environ.get('BLENDER_ID_ENDPOINT') + if base_url: + log.warning('Using overridden Blender ID url %s', base_url) + else: + base_url = 'https://www.blender.org/id/' + log.info('Using standard Blender ID url %s', base_url) # urljoin() is None-safe for the 2nd parameter. return urllib.parse.urljoin(base_url, endpoint_path) |