Replaced empty else with logger call