Note, that `logger.debug` is also used a couple of lines further down from this. I would happily welcome a change there too.