Skip to content

Commit

Permalink
experiment: Better host_cleanup() failure messages
Browse files Browse the repository at this point in the history
Logger.exception() results in a nicely formatted multi-line log
message, including the tracebacks.
  • Loading branch information
dnadlinger authored and oitg-bulldozer[bot] committed Mar 24, 2021
1 parent c7a337b commit 9d46a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndscan/experiment/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def host_cleanup(self):
for s in self._subfragments[::-1]:
try:
s.host_cleanup()
except Exception as e:
logger.error("Cleanup failed for '%s': %s", s._stringize_path(), e)
except Exception:
logger.exception("Cleanup failed for '%s'", s._stringize_path())

@portable
def device_cleanup(self) -> None:
Expand Down

0 comments on commit 9d46a98

Please sign in to comment.