mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lower the log level for failed auths
Since failed auths are most often due to key rotation, they should be logged as debug messages rather than errors.
This commit is contained in:
parent
504989388a
commit
411841603a
1 changed files with 10 additions and 1 deletions
|
@ -532,7 +532,16 @@ class ZeroMQReqServerChannel(salt.transport.mixins.auth.AESReqServerMixin, salt.
|
|||
payload = self.serial.loads(payload[0])
|
||||
payload = self._decode_payload(payload)
|
||||
except Exception as exc:
|
||||
log.error('Bad load from minion: %s: %s', type(exc).__name__, exc)
|
||||
exc_type = type(exc).__name__
|
||||
if exc_type == 'AuthenticationError':
|
||||
log.debug(
|
||||
'Minion failed to auth to master. Since the payload is '
|
||||
'encrypted, it is not known which minion failed to '
|
||||
'authenticate. It is likely that this is a transient '
|
||||
'failure due to the master rotating its public key.'
|
||||
)
|
||||
else:
|
||||
log.error('Bad load from minion: %s: %s', exc_type, exc)
|
||||
stream.send(self.serial.dumps('bad load'))
|
||||
raise tornado.gen.Return()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue