Fixing usage of the logger.