Skip to content

Commit

Permalink
Merge pull request square#20 from square/edenman/log-failed-urls
Browse files Browse the repository at this point in the history
Log the api url for failed requests
  • Loading branch information
eburke committed Feb 18, 2012
2 parents f8c1cbd + 5cadd33 commit bccb05d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/http/src/retrofit/http/RestAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ private void backgroundInvoke(Method method, final Object[] args) {

httpClientProvider.get().execute(request, rh);
} catch (IOException e) {
logger.log(Level.WARNING, e.getMessage(), e);
logger.log(Level.WARNING, e.getMessage() + " from " + server.apiUrl(), e);
callback.networkError();
} catch (Throwable t) {
logger.log(Level.WARNING, t.getMessage(), t);
logger.log(Level.WARNING, t.getMessage() + " from " + server.apiUrl(), t);
callback.unexpectedError(t);
}
}
Expand Down

0 comments on commit bccb05d

Please sign in to comment.