Fix AttributeError for LogAdapter
LogAdapter object has no attribute 'warn' but has attribute 'warning'. Closes-Bug: #1529321 Change-Id: I0e0bd0a3dbc4bb5c1f0b343a8809e53491a1da5f
This commit is contained in:
@@ -174,11 +174,12 @@ class Replicator(Daemon):
|
|||||||
if not self.rsync_module:
|
if not self.rsync_module:
|
||||||
self.rsync_module = '{replication_ip}::%s' % self.server_type
|
self.rsync_module = '{replication_ip}::%s' % self.server_type
|
||||||
if config_true_value(conf.get('vm_test_mode', 'no')):
|
if config_true_value(conf.get('vm_test_mode', 'no')):
|
||||||
self.logger.warn('Option %(type)s-replicator/vm_test_mode is '
|
self.logger.warning('Option %(type)s-replicator/vm_test_mode '
|
||||||
'deprecated and will be removed in a future '
|
'is deprecated and will be removed in a '
|
||||||
'version. Update your configuration to use '
|
'future version. Update your configuration'
|
||||||
'option %(type)s-replicator/rsync_module.'
|
' to use option %(type)s-replicator/'
|
||||||
% {'type': self.server_type})
|
'rsync_module.'
|
||||||
|
% {'type': self.server_type})
|
||||||
self.rsync_module += '{replication_port}'
|
self.rsync_module += '{replication_port}'
|
||||||
self.reclaim_age = float(conf.get('reclaim_age', 86400 * 7))
|
self.reclaim_age = float(conf.get('reclaim_age', 86400 * 7))
|
||||||
swift.common.db.DB_PREALLOCATION = \
|
swift.common.db.DB_PREALLOCATION = \
|
||||||
|
Reference in New Issue
Block a user