The subtype
formatting arg does not exist
The logging decorator was causing tracebacks due to a nonexistent formatting argument. ``` Traceback (most recent call last): [snipped] KeyError: u'subtype' Logged from file decorators.py, line 45 ``` Change-Id: I9299da8617c7e86a863feb0957f439b90dd60a6a
This commit is contained in:
parent
db445425d0
commit
900dc12704
@ -40,9 +40,10 @@ class TransportLog(object):
|
||||
# and returns 'GET' and 'PATCH' respectively, so we do not need
|
||||
# the name of the HTTP method to be passed.
|
||||
method = func.__name__[3:].upper()
|
||||
LOG.debug(u'%(type) %(method) - %(subtype): %(arguments)',
|
||||
LOG.debug(u'%(type)s %(method)s: %(arguments)s',
|
||||
{'type': self.resource_type,
|
||||
'method': method, 'arguments': jsonutils.dumps(kwargs)})
|
||||
'method': method,
|
||||
'arguments': jsonutils.dumps(kwargs)})
|
||||
return func(*args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
|
Loading…
Reference in New Issue
Block a user