write message in log on request error