log request only on errors