Fix log level argument
Pylint
Add logging for some generic events