작성
·
192
답변 1
0
네 후반부에는 print문으로 출력해서 중간 결과를 확인하고 있습니다.
언급하신대로 출력이 되지 않을수도 있습니다.
If you are implementing asynchronous signal handlers using the signal
module, you may not be able to use logging from within such handlers. This is because lock implementations in the threading
module are not always re-entrant, and so cannot be invoked from such signal handlers.
또는 lock을 이용해서 출력도 가능합니다.
https://stackoverflow.com/questions/48745240/python-logging-in-multi-threads