Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
reduce advertise errors to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Oct 28, 2015
1 parent 42f1504 commit 0692c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,7 @@ Changes by Version
0.18.2 (unreleased)
-------------------

- Nothing changed yet.
- Reduced Hyperbahn advertisement failures to warnings.


0.18.1 (2015-10-28)
Expand Down
6 changes: 3 additions & 3 deletions tchannel/tornado/hyperbahn.py
Expand Up @@ -67,12 +67,12 @@ def _advertise(tchannel, service):
retry_limit=0,
)
except Exception as e: # Big scope to keep it alive.
log.error('Failed to register with Hyperbahn: %s', e)
log.warn('Failed to register with Hyperbahn: %s', e)
else:
if response.code != StatusCode.ok:
log.error('Failed to register with Hyperbahn: %s', response)
log.warn('Failed to register with Hyperbahn: %s', response)
else:
log.info('Successfully register with Hyperbahn')
log.info('Successfully registered with Hyperbahn')

raise tornado.gen.Return(response)

Expand Down

0 comments on commit 0692c8d

Please sign in to comment.