pytest: Fine tuning for LogLevel vs -v^n.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yann Ylavic
2023-07-07 11:03:17 +00:00
parent 0fc26087e9
commit 63a550e969

View File

@ -569,12 +569,17 @@ class HttpdTestEnv:
fd.write('\n'.join(self._httpd_base_conf))
fd.write('\n')
fd.write(f"CoreDumpDirectory {self._server_dir}\n")
if self._verbosity >= 2:
fd.write(f"LogLevel core:trace5 {self.mpm_module}:trace5 http:trace5\n")
fd.write('\n')
if self._verbosity >= 3:
fd.write(f"LogLevel dumpio:trace7\n")
fd.write(f"LogLevel trace7 ssl:trace6\n")
fd.write(f"DumpIoOutput on\n")
fd.write(f"DumpIoInput on\n")
elif self._verbosity >= 2:
fd.write(f"LogLevel debug core:trace5 {self.mpm_module}:trace5 ssl:trace5 http:trace5\n")
elif self._verbosity >= 1:
fd.write(f"LogLevel info\n")
else:
fd.write(f"LogLevel warn\n")
if self._log_interesting:
fd.write(self._log_interesting)
fd.write('\n\n')