summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/software/lmi/software/util/cmpi_logging.py4
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"