mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Improve logging when master cannot decode a payload
This includes the exception type and message in the log message instead of simply logging "Bad load from minion".
This commit is contained in:
parent
4d1b49c1e7
commit
1fbe3cba1f
1 changed files with 2 additions and 2 deletions
|
@ -512,8 +512,8 @@ class ZeroMQReqServerChannel(salt.transport.mixins.auth.AESReqServerMixin, salt.
|
|||
try:
|
||||
payload = self.serial.loads(payload[0])
|
||||
payload = self._decode_payload(payload)
|
||||
except Exception as e:
|
||||
log.error('Bad load from minion')
|
||||
except Exception as exc:
|
||||
log.error('Bad load from minion: %s: %s', type(exc).__name__, exc)
|
||||
stream.send(self.serial.dumps('bad load'))
|
||||
raise tornado.gen.Return()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue