logger: reuse logger_or_root, dedupe optional-logger-arg pattern

This commit is contained in:
Andrej730
2026-07-16 16:58:55 +05:00
parent 2155e3206f
commit 9213b31235
5 changed files with 72 additions and 16 deletions
@@ -217,6 +217,7 @@ def test_iterator():
def test_logging():
assert ifcopenshell.logger
logger = ifcopenshell.logger()
logger.OutputFormat(logger.FMT_INMEMORY)
settings = ifcopenshell.geom.settings()