feat(clien): verbose

This commit is contained in:
Swann Martinez
2019-05-02 18:23:35 +02:00
parent 49e242d9ea
commit f4cd489ea4
2 changed files with 8 additions and 18 deletions

View File

@ -475,6 +475,8 @@ def rcf_client_worker(ctx,store, pipe, serial_product, serial_feed, stop_event):
def serial_worker(product, feed):
logger.info("serial thread launched")
while True:
command,key,value = feed.get()
@ -489,11 +491,13 @@ def serial_worker(product, feed):
if value:
helpers.load(key, value)
logger.info("serial thread stopped")
def watchdog_worker(feed,interval, stop_event):
import bpy
global stop
logger.info("watchdog thread launched with {} sec of interval".format(interval))
while not stop_event.is_set():
for datatype in helpers.SUPPORTED_TYPES:
@ -504,3 +508,5 @@ def watchdog_worker(feed,interval, stop_event):
feed.put(('DUMP',key,None))
time.sleep(interval)
logger.info("watchdog thread stopped")