Skip to content

Commit

Permalink
Merge pull request #55 from Emory-HITI/dev
Browse files Browse the repository at this point in the history
Fix log levels in the error message
  • Loading branch information
pradeeban authored Nov 24, 2020
2 parents 517e922 + 5ffa2c2 commit 3cf4c89
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/cold-extraction/ColdDataRetriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ def check_kill_process():
try:
os.kill(int(pid), signal.SIGKILL)
except PermissionError:
logging.info("The previous user's StoreScp process has become a zombie. It is roaming around freely. Please kill it first")
logging.info("From your terminal run the below commands.")
logging.info("First find the pid of the storescp:- sudo ps -xa | grep storescp")
logging.info("Then kill that above process with:- sudo kill -9 PID-FROM-THE-PREVIOUS-STEP")
logging.info("Once killed, restart Niffler as before. Your current Niffler process is terminating now...")
logging.warning("The previous user's StoreScp process has become an orphan. It is roaming around freely, like a zombie. Please kill it first")
logging.warning("From your terminal run the below commands.")
logging.warning("First find the pid of the storescp:- sudo ps -xa | grep storescp")
logging.warning("Then kill that above process with:- sudo kill -9 PID-FROM-THE-PREVIOUS-STEP")
logging.warning("Once killed, restart Niffler as before.")
logging.error("Your current Niffler process terminates now. You or someone with sudo privilege must kill the idling storescp process first...")
sys.exit(1)


Expand Down

0 comments on commit 3cf4c89

Please sign in to comment.