Dump the IOexception before retrying load escrow key

This gives us more information on the reason of the failure.

Test: unittest
Change-Id: I0c4b91aa67607c2b1fdddcd4477fa67287fa4b3e
This commit is contained in:
Tianjie
2021-04-27 21:49:22 -07:00
parent 16019ad77d
commit 1cfb57c023

View File

@@ -374,6 +374,7 @@ class RebootEscrowManager {
try {
escrowKey = getAndClearRebootEscrowKey(kk);
} catch (IOException e) {
Slog.i(TAG, "Failed to load escrow key, scheduling retry.", e);
scheduleLoadRebootEscrowDataOrFail(retryHandler, attemptNumber + 1, users,
rebootEscrowUsers);
return;