Skip to content

Commit

Permalink
use logger.exception over logger.warning in VaspJob.terminate to get …
Browse files Browse the repository at this point in the history
…whole stacktrace

helps a lot with debugging
  • Loading branch information
janosh committed Dec 12, 2024
1 parent c12d389 commit 2b6de36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custodian/vasp/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def terminate(self, directory="./") -> None:
proc.kill()
return
except (psutil.NoSuchProcess, psutil.AccessDenied) as exc:
logger.warning(f"Exception {exc} encountered while killing VASP.")
logger.exception(f"Exception {exc} encountered while killing VASP.")
continue

logger.warning(
Expand Down

0 comments on commit 2b6de36

Please sign in to comment.