summaryrefslogtreecommitdiffstats
path: root/python/dpdce.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-09 15:44:06 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-09 15:44:06 +0100
commitb717160a90279c21c068d39673c6aafad66dfcae (patch)
tree01aaf768ebae270cd5f58261d777b374ee1152e6 /python/dpdce.py
parent75ba4f064a65ebad77d130f160b9469418e49c9f (diff)
downloaddabmod-b717160a90279c21c068d39673c6aafad66dfcae.tar.gz
dabmod-b717160a90279c21c068d39673c6aafad66dfcae.tar.bz2
dabmod-b717160a90279c21c068d39673c6aafad66dfcae.zip
GUI: Add status to home page
Diffstat (limited to 'python/dpdce.py')
-rwxr-xr-xpython/dpdce.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/dpdce.py b/python/dpdce.py
index 27c5253..5b308c4 100755
--- a/python/dpdce.py
+++ b/python/dpdce.py
@@ -409,7 +409,7 @@ try:
try:
addr, msg_id, method, params = cmd_socket.receive_request()
except ValueError as e:
- logging.warning('YAML-RPC request error: {}'.format(e))
+ logging.warning('RPC request error: {}'.format(e))
continue
except TimeoutError:
continue
@@ -417,22 +417,22 @@ try:
logging.info('Caught KeyboardInterrupt')
break
except:
- logging.error('YAML-RPC unknown error')
+ logging.error('RPC unknown error')
break
if any(method == m for m in ['trigger_run', 'reset', 'adapt']):
- logging.info('YAML-RPC request : {}'.format(method))
+ logging.info('Received RPC request : {}'.format(method))
command_queue.put(method)
cmd_socket.send_success_response(addr, msg_id, None)
elif method == 'restore_dump':
- logging.info('YAML-RPC restore dump {}'.format(params['dump_id']))
+ logging.info('Received RPC request : restore_dump({})'.format(params['dump_id']))
command_queue.put(f"restore_dump-{params['dump_id']}")
cmd_socket.send_success_response(addr, msg_id, None)
elif method == 'get_results':
with lock:
cmd_socket.send_success_response(addr, msg_id, results)
elif method == 'calibrate':
- logging.info('YAML-RPC request : {}'.format(method))
+ logging.info('Received RPC request : {}'.format(method))
command_queue.put('calibrate')
cmd_socket.send_success_response(addr, msg_id, None)
else: