Open nsoblath opened 8 years ago
Request messages include retcode and return_msg, which are specific to replies.
retcode
return_msg
This causes warnings when Dripline receives such messages. e.g.:
2016-06-20T13:45:16[DEBUG ] dripline.core.service(364) -> Acknowledging message 3 2016-06-20T13:45:16[DEBUG ] dripline.core.message(166) -> original msg was: {"msgtype":3,"msgop":9,"retcode":0,"return_msg":"","timestamp":"2016-06-20T2020:45:16Z","sender_info":{"package":"hornet","exe":"/home/project8/Code/Go/bin/hornet","version":"v2.4.11","commit":"v2.4.11-0-g9dbdcd8","hostname":"ignatius","username":"project8"},"payload":{"run_id":"000000683","values":["do_insert"],"file_name":"rid000000683_mask.msk","file_hash":"2a64d70ec9e0ae850bcdd388e32c9b7e"}} 2016-06-20T13:45:16[DEBUG ] dripline.core.message(139) -> from_dict is: {u'sender_info': {u'username': u'project8', u'exe': u'/home/project8/Code/Go/bin/hornet', u'package': u'hornet', u'hostname': u'ignatius', u'version': u'v2.4.11', u'commit': u'v2.4.11-0-g9dbdcd8'}, u'timestamp': u'2016-06-20T2020:45:16Z', u'return_msg': u'', u'msgop': 9, u'msgtype': 3, u'payload': {u'file_hash': u'2a64d70ec9e0ae850bcdd388e32c9b7e', u'file_name': u'rid000000683_mask.msk', u'values': [u'do_insert'], u'run_id': u'000000683'}, u'retcode': 0} 2016-06-20T13:45:16[DEBUG ] dripline.core.message(148) -> msgtype is 3 2016-06-20T13:45:16[WARNING ] dripline.core.message(62) -> got unexpected kwarg <retcode> with value <0> it will be dropped 2016-06-20T13:45:16[WARNING ] dripline.core.message(62) -> got unexpected kwarg <return_msg> with value <> it will be dropped
Would be fixed by #32
Request messages include
retcode
andreturn_msg
, which are specific to replies.This causes warnings when Dripline receives such messages. e.g.: