Skip to content

Commit

Permalink
Merge pull request #417 from chris-allan/tables-logging
Browse files Browse the repository at this point in the history
Switch result logging to DEBUG level
  • Loading branch information
jburel authored Jul 12, 2024
2 parents 2e78eea + 78935e0 commit b53620e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/omero/util/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def exc_handler(*args, **kwargs):
self = args[0]
log.info(" Meth: %s.%s", self.__class__.__name__, func.__name__)
rv = func(*args, **kwargs)
log.info(__RESULT, rv)
if log.isEnabledFor(logging.DEBUG):
log.debug(__RESULT, rv)
else:
log.info(__RESULT, type(rv))
return rv
except Exception as e:
log.info(__EXCEPT, e)
Expand Down

0 comments on commit b53620e

Please sign in to comment.