diff --git a/synapse/util/logutils.py b/synapse/util/logutils.py index 9270a1790b19a881b9670d066305f779e459655e..021649071bcb6f4791000a35ff9f11a18bce6977 100644 --- a/synapse/util/logutils.py +++ b/synapse/util/logutils.py @@ -15,6 +15,7 @@ from inspect import getcallargs +from functools import wraps import logging @@ -26,6 +27,7 @@ def log_function(f): lineno = f.func_code.co_firstlineno pathname = f.func_code.co_filename + @wraps(f) def wrapped(*args, **kwargs): name = f.__module__ logger = logging.getLogger(name)