Fixed the logger method causing errors.