Merge pull request #24806 from cachedout/better_payload_logging

Improved debugging for missing or corrupt payloads
This commit is contained in:
Mike Place 2015-06-18 11:53:15 -06:00
commit 0da049b6ae

View File

@ -480,7 +480,7 @@ class ZeroMQReqServerChannel(salt.transport.mixins.auth.AESReqServerMixin, salt.
# TODO helper functions to normalize payload?
if not isinstance(payload, dict) or not isinstance(payload.get('load'), dict):
log.error('payload and load must be a dict')
log.error('payload and load must be a dict. Payload was: {0} and load was {1}'.format(payload, payload.get('load')))
stream.send(self.serial.dumps('payload and load must be a dict'))
raise tornado.gen.Return()