HUE-2041 [pig] Improve log polling usage