Skip to content

Commit

Permalink
fix logging exceptions raised by plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
yrro committed Mar 12, 2024
1 parent e451258 commit 5f54da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ipahealthcheck/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def signal_handler(signum, frame):
# related to our TimeoutError; if it was then we will yield a
# result here based on the plugin's own exception, and _also_
# later on in the finally block.
logger.log(
'Exception raised in health check %r: %s',
plugin_name, e, level=constants.CRITICAL, exc_info=True
logger.exception(
"Exception raised in health check %r",
plugin_name
)
yield Result(plugin, constants.CRITICAL, exception=str(e),
traceback=traceback.format_exc(),
Expand Down

0 comments on commit 5f54da6

Please sign in to comment.