Added more logger information
Added if statement in case the json response is empty within get_selected_hosts function