Skip to content

Commit

Permalink
Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 6, 2024
1 parent dd824f8 commit 918c983
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ protected DAVClient connect(final ProxyFinder proxy, final HostKeyCallback key,
public void login(final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {
super.login(prompt, cancel);
try {
client.execute(new OcsCapabilitiesRequest(host), new OcsCapabilitiesResponseHandler(ocs));
final OcsCapabilitiesRequest request = new OcsCapabilitiesRequest(host);
log.debug("Query OCS capabilities at {}", request);
client.execute(request, new OcsCapabilitiesResponseHandler(ocs));
}
catch(HttpResponseException e) {
throw new DefaultHttpResponseExceptionMappingService().map(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public OwncloudSession(final Host host, final X509TrustManager trust, final X509
protected DAVClient connect(final ProxyFinder proxy, final HostKeyCallback key, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {
final DAVClient client = super.connect(proxy, key, prompt, cancel);
try {
client.execute(new TusCapabilitiesRequest(host, new OwncloudHomeFeature(host).find(OwncloudHomeFeature.Context.tus)), new TusCapabilitiesResponseHandler(tus));
final TusCapabilitiesRequest request = new TusCapabilitiesRequest(host, new OwncloudHomeFeature(host).find(OwncloudHomeFeature.Context.tus));
log.debug("Query Tus capabilities at {}", request);
client.execute(request, new TusCapabilitiesResponseHandler(tus));
}
catch(HttpResponseException e) {
throw new DefaultHttpResponseExceptionMappingService().map(e);
Expand Down

0 comments on commit 918c983

Please sign in to comment.