Fixed logging-not-lazy warning from PyLint.