Fixed an issue with logging.
use the default value of getattr..
A bit more cleanup