Show server name when we log a SASL failure (sasl)

This commit is contained in:
jesopo 2019-02-07 12:23:11 +00:00
parent 1485947fcc
commit a3ca29dabe

View file

@ -112,5 +112,6 @@ class Module(ModuleManager.BaseModule):
self._end_sasl(event["server"])
@utils.hook("received.numeric.904")
def sasl_failure(self, event):
self.log.warn("SASL failure: %s", [event["args"][1]])
self.log.warn("SASL failure for %s: %s",
[str(event["server"]), event["args"][1]])
self._end_sasl(event["server"])