Skip to content

Commit

Permalink
consistent use of logger.exception
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Jan 30, 2024
1 parent b615e6c commit ac15395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ def set_container_unhealthy():
sensor_loader.capabilities = {}
logger.warning("Usb is not ready. Marking container as unhealthy")
set_container_unhealthy()
except Exception as ex:
logger.error(f"Error during initialization: {ex}")
except:
logger.exception("Error during initialization")

0 comments on commit ac15395

Please sign in to comment.