remail/lists: Emit warning text instead of 'txt'

'txt' is pretty useless in syslog and admin reports.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner 2020-02-20 12:42:50 +01:00
parent fa1e6fc47e
commit 342d696b2b

View file

@ -161,7 +161,7 @@ class maillist(object):
if acc.enabled: if acc.enabled:
acc.enabled = False acc.enabled = False
txt = 'Freezing account due to permanent failure %s\n' % addr txt = 'Freezing account due to permanent failure %s\n' % addr
self.logger.log_warn('txt') self.logger.log_warn(txt)
self.tracking.freeze_account(acc) self.tracking.freeze_account(acc)
else: else:
txt = 'Trying to freeze non existing account %s.\n' % addr txt = 'Trying to freeze non existing account %s.\n' % addr