improved log format for client errors