You can use strace on a specific pid to figure out what a specific process is doing, e.g.:
strace -fp <pid>
You might see something like:
select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)
# web_page_logger.py | |
import logging | |
class WebPageHandler(logging.Handler): | |
def __init__(self): | |
logging.Handler.__init__(self) | |
self.messages = [] | |
def emit(self, record): |