MCPcopy
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

testAddActionPythonMethod · 0.80
testBanActionsAInfoMethod · 0.80
testIgnoreAddBannedIPMethod · 0.80
testNoLogFileMethod · 0.80
testRemovingFailRegexMethod · 0.80
testExecuteActionBanMethod · 0.80

Calls

no outgoing calls

Tested by 15

testAddActionPythonMethod · 0.64
testBanActionsAInfoMethod · 0.64
testIgnoreAddBannedIPMethod · 0.64
testNoLogFileMethod · 0.64
testRemovingFailRegexMethod · 0.64
testExecuteActionBanMethod · 0.64