Skip to content

Commit

Permalink
Log the type at INFO if DEBUG is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed Jun 21, 2024
1 parent f5743a3 commit 78935e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/omero/util/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def exc_handler(*args, **kwargs):
rv = func(*args, **kwargs)
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 78935e0

Please sign in to comment.