Skip to content

Commit 4313b90

Browse files
committed
Add logging to kill
1 parent 65a9680 commit 4313b90

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

choreographer/utils/_kill.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import platform
44
import subprocess
55

6+
import logistro
7+
8+
_logger = logistro.getLogger(__name__)
9+
610

711
def kill(process: subprocess.Popen[bytes]) -> None:
812
if platform.system() == "Windows":
@@ -13,5 +17,7 @@ def kill(process: subprocess.Popen[bytes]) -> None:
1317
)
1418
else:
1519
process.terminate()
20+
_logger.info("Called terminate")
1621
if process.poll() is None:
22+
_logger.info("Calling kill")
1723
process.kill()

0 commit comments

Comments
 (0)