mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
ENH: added logging while stopping the jails
This commit is contained in:
parent
9fa54cf233
commit
fbce415622
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ class Server:
|
|||
self.__lock.release()
|
||||
|
||||
def stopJail(self, name):
|
||||
logSys.debug("Stopping jail %s" % name)
|
||||
try:
|
||||
self.__lock.acquire()
|
||||
if self.isAlive(name):
|
||||
|
|
@ -135,6 +136,7 @@ class Server:
|
|||
self.__lock.release()
|
||||
|
||||
def stopAllJail(self):
|
||||
logSys.info("Stopping all jails")
|
||||
try:
|
||||
self.__lock.acquire()
|
||||
for jail in self.__jails.getAll():
|
||||
|
|
|
|||
Loading…
Reference in a new issue