Skip to content

Commit

Permalink
Add some logging...
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 600689767
Change-Id: Ia61bbca506c6a8fe402febda85c05f562af24e15
  • Loading branch information
meisterT authored and copybara-github committed Jan 23, 2024
1 parent 36fa60b commit 8108815
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,12 @@ private Single<TransferResult> prefetchFile(

return RxUtils.toTransferResult(result);
} catch (IOException e) {
// TODO(b/320630578): Temporary logging which might help to catch the root cause.
logger.atWarning().withCause(e).log("Failed to prefetch file %s", input.getExecPathString());
return Single.just(TransferResult.error(e));
} catch (InterruptedException e) {
// TODO(b/320630578): Temporary logging which might help to catch the root cause.
logger.atWarning().withCause(e).log("Failed to prefetch file %s", input.getExecPathString());
return Single.just(TransferResult.interrupted());
}
}
Expand Down

0 comments on commit 8108815

Please sign in to comment.