Actually, the % syntax eagerly evaluates the log string, you need to pass the variables as arguments to the logging function like this: logger.debug("bla: %s", myvar).
It's such a subtle difference that I only notice it when my IDE underlines it :/
It's such a subtle difference that I only notice it when my IDE underlines it :/