improved logging of error reports