Commit 9ebfa02d authored by Andreas Schildbach's avatar Andreas Schildbach

BackupWalletDialogFragment: Log length of ciphertext written.

parent e8677853
......@@ -299,11 +299,12 @@ public class BackupWalletDialogFragment extends DialogFragment {
baos.close();
plainBytes = baos.toByteArray();
cipherOut.write(Crypto.encrypt(plainBytes, password.toCharArray()));
final String cipherText = Crypto.encrypt(plainBytes, password.toCharArray());
cipherOut.write(cipherText);
cipherOut.flush();
log.info("backed up wallet to: '" + targetUri + "'"
+ (target != null ? " (" + target + ")" : ""));
log.info("backed up wallet to: '{}'{}, {} characters written", targetUri,
target != null ? " (" + target + ")" : "", cipherText.length());
} catch (final IOException x) {
log.error("problem backing up wallet", x);
ErrorDialogFragment.showDialog(getFragmentManager(), x.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment