Enabled logging DEBUG in pytest

This commit is contained in:
Qubasa
2024-01-11 22:14:55 +01:00
parent 6647c38417
commit a98463e3b9
2 changed files with 6 additions and 4 deletions

View File

@@ -124,7 +124,8 @@ def main() -> None:
if args.debug:
setup_logging(logging.DEBUG)
log.debug("Debug log activated")
setup_logging(logging.INFO)
else:
setup_logging(logging.INFO)
if not hasattr(args, "func"):
return