Fix a missed Python 2ism in the logger