From 033160eb96ed7fcf458c25c3446517aaf8c22032 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Mon, 2 Oct 2006 21:15:56 +0000 Subject: [PATCH] - Added jail name to ban/unban log git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@404 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- server/actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/actions.py b/server/actions.py index 140f11a0..7b8f7a9f 100644 --- a/server/actions.py +++ b/server/actions.py @@ -133,7 +133,7 @@ class Actions(JailThread): bTicket = BanManager.createBanTicket(ticket) aInfo["ip"] = bTicket.getIP() aInfo["failures"] = bTicket.getAttempt() - logSys.warn("Ban %s" % aInfo["ip"]) + logSys.warn("[%s] Ban %s" % self.jail.getName(), aInfo["ip"]) for action in self.__actions: action.execActionBan(aInfo) self.__banManager.addBanTicket(bTicket) @@ -149,7 +149,7 @@ class Actions(JailThread): for ticket in self.__banManager.unBanList(time.time()): aInfo = dict() aInfo["ip"] = ticket.getIP() - logSys.warn("Unban %s" % aInfo["ip"]) + logSys.warn("[%s] Unban %s" % self.jail.getName(), aInfo["ip"]) for action in self.__actions: action.execActionUnban(aInfo) @@ -163,7 +163,7 @@ class Actions(JailThread): for ticket in self.__banManager.flushBanList(): aInfo = dict() aInfo["ip"] = ticket.getIP() - logSys.info("Unban %s" % aInfo["ip"]) + logSys.warn("[%s] Unban %s" % self.jail.getName(), aInfo["ip"]) for action in self.__actions: action.execActionUnban(aInfo)