Fixed logging and split access and root file handlers
This commit is contained in:
parent
b8c0ca257c
commit
4a553040d3
6 changed files with 54 additions and 41 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue