mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
more readable syntax
This commit is contained in:
parent
8fd45048a4
commit
43b67b8318
@ -21,10 +21,10 @@ class Monitor(statsd.StatsClient):
|
||||
kwargs = {}
|
||||
|
||||
# set prefix, parameters from configuration file
|
||||
if not kwargs.get('prefix'):
|
||||
if 'prefix' not in kwargs:
|
||||
kwargs['prefix'] = '{hostname}.'.format(hostname=node())
|
||||
if not kwargs.get('host'):
|
||||
if 'host' not in kwargs:
|
||||
kwargs['host'] = bigchaindb.config['statsd']['host']
|
||||
if not kwargs.get('port'):
|
||||
if 'port' not in kwargs:
|
||||
kwargs['port'] = bigchaindb.config['statsd']['port']
|
||||
super().__init__(*args, **kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user