API error logging post