This would be easier to read as `logging.DEBUG if DEBUG else logging.INFO` (if that's what it's actually doing). I can include this in my tweaks after merging, but please let me know if you think that wouldn't work.