Added logging to isHostUp() function