logging: use correct jinja var syntax, not logic