MCPcopy Create free account
hub / github.com/apache/httpd / clear_log

Method clear_log

test/pyhttpd/log.py:42–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 return self._path
41
42 def clear_log(self):
43 if os.path.isfile(self.path):
44 os.truncate(self.path, 0)
45 self._start_pos = self._recent_pos = 0
46 self._recent_errors = []
47 self._recent_warnings = []
48 self._caught_errors = set()
49 self._caught_warnings = set()
50 self._caught_matches = set()
51
52 def _lookup_matches(self, line: str, matches: List[str]) -> bool:
53 for m in matches:

Callers 7

test_md_702_009Method · 0.80
envFunction · 0.80
envFunction · 0.80
test_core_002_01Method · 0.80
envFunction · 0.80
envFunction · 0.80
envFunction · 0.80

Calls

no outgoing calls

Tested by 7

test_md_702_009Method · 0.64
envFunction · 0.64
envFunction · 0.64
test_core_002_01Method · 0.64
envFunction · 0.64
envFunction · 0.64
envFunction · 0.64