Fix logger and trying to fix codeclimate