Fixed logging and split access and root file handlers

This commit is contained in:
Joel Collins 2020-05-20 17:46:44 +01:00
parent b8c0ca257c
commit 4a553040d3
6 changed files with 54 additions and 41 deletions

View file

@ -62,7 +62,7 @@ class JPEGSharpnessMonitor:
def stop(self):
"Stop the background thread"
self.stop_event.set()
print("Joining JPEG thread")
logging.info("Joining JPEG thread")
self.background_thread.join()
def _measure_jpegs(self):
@ -75,7 +75,7 @@ class JPEGSharpnessMonitor:
time_now = time.time()
self.jpeg_sizes.append(size_now)
self.jpeg_times.append(time_now)
print("Exited JPEG measure loop")
logging.info("Exited JPEG measure loop")
if self.stop_event.is_set():
logging.debug("Cleanly stopped sharpness measurement in background thread")
if self.should_stop():