diff options
author | Michal Minar <miminar@redhat.com> | 2013-07-26 14:19:10 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-07-26 15:13:54 +0200 |
commit | 28723859b15ffa88441407ec1985ef2104a0aa1b (patch) | |
tree | af23038fc5a601c957ca2970591c640e28fa18c9 /src/software/lmi | |
parent | 5fb55043442f97a7618ffb2f05ddfda40acf6309 (diff) | |
download | openlmi-providers-28723859b15ffa88441407ec1985ef2104a0aa1b.tar.gz openlmi-providers-28723859b15ffa88441407ec1985ef2104a0aa1b.tar.xz openlmi-providers-28723859b15ffa88441407ec1985ef2104a0aa1b.zip |
software: fixed logging decorator
do not expect, that decorated function takes any argument
Diffstat (limited to 'src/software/lmi')
-rw-r--r-- | src/software/lmi/software/util/cmpi_logging.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/software/lmi/software/util/cmpi_logging.py b/src/software/lmi/software/util/cmpi_logging.py index b3a76c4..14802c5 100644 --- a/src/software/lmi/software/util/cmpi_logging.py +++ b/src/software/lmi/software/util/cmpi_logging.py @@ -160,7 +160,7 @@ def trace_function_or_method(is_method=False, frame_level=1): classname = inspect.getouterframes( inspect.currentframe())[frame_level][3] - def _wrapper(self, *args, **kwargs): + def _wrapper(*args, **kwargs): """ Wrapper for function or method, that does the logging. """ @@ -188,7 +188,7 @@ def trace_function_or_method(is_method=False, frame_level=1): logger.debug("%(caller_file)s:%(caller_lineno)d - %(action)s" " %(module)s:%(func)s:%(lineno)d%(args)s" , logargs) try: - result = func(self, *args, **kwargs) + result = func(*args, **kwargs) if logger.isEnabledFor(logging.DEBUG): logargs["action"] = "exiting" logger.debug("%(caller_file)s:%(caller_lineno)d" |