Bug 1057056 - Set __doc__ attribute of decorated structured logger methods. r=jgraham

This commit is contained in:
Chris Manchester 2014-08-25 11:16:50 -04:00
parent a0ed0c97eb
commit 4b1e9cce34

View File

@ -46,6 +46,9 @@ class log_action(object):
data = converter.convert(*args, **kwargs)
return f(self, data)
if hasattr(f, '__doc__'):
setattr(inner, '__doc__', f.__doc__)
return inner
def convert(self, *args, **kwargs):