Fix logger and trying to fix codeclimat