Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fail2ban/fail2ban
/ _is_logged
Method
_is_logged
fail2ban/tests/utils.py:207–208 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
205
logSys.level = self._old_level
206
207
def
_is_logged(self, s):
208
return
s in self._log.getvalue()
209
210
def
printLog(self):
211
print((self._log.getvalue()))
Callers
15
testFail2BanExceptHook
Method · 0.80
testAddActionPython
Method · 0.80
testAddPythonActionNOK
Method · 0.80
testBanActionsAInfo
Method · 0.80
testIgnoreInProcessLine
Method · 0.80
testIgnoreAddBannedIP
Method · 0.80
testUnaccessibleLogFile
Method · 0.80
testNoLogFile
Method · 0.80
testRemovingFailRegex
Method · 0.80
testRemovingIgnoreRegex
Method · 0.80
testExecuteActionBan
Method · 0.80
testExecuteActionEmptyUnban
Method · 0.80
Calls
no outgoing calls
Tested by
15
testFail2BanExceptHook
Method · 0.64
testAddActionPython
Method · 0.64
testAddPythonActionNOK
Method · 0.64
testBanActionsAInfo
Method · 0.64
testIgnoreInProcessLine
Method · 0.64
testIgnoreAddBannedIP
Method · 0.64
testUnaccessibleLogFile
Method · 0.64
testNoLogFile
Method · 0.64
testRemovingFailRegex
Method · 0.64
testRemovingIgnoreRegex
Method · 0.64
testExecuteActionBan
Method · 0.64
testExecuteActionEmptyUnban
Method · 0.64