fixing POST request behavior by sending proper logs.