mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
more work on import logging
This commit is contained in:
parent
478b2a4d8b
commit
ba724353e5
@ -172,7 +172,7 @@ public class ImportExportOperation extends BaseOperation {
|
|||||||
byte[] data;
|
byte[] data;
|
||||||
// Download by fingerprint, or keyId - whichever is available
|
// Download by fingerprint, or keyId - whichever is available
|
||||||
if (entry.mExpectedFingerprint != null) {
|
if (entry.mExpectedFingerprint != null) {
|
||||||
log.add(LogType.MSG_IMPORT_FETCH_KEYSERVER, 1, "0x" + entry.mExpectedFingerprint);
|
log.add(LogType.MSG_IMPORT_FETCH_KEYSERVER, 1, "0x" + entry.mExpectedFingerprint.substring(24));
|
||||||
data = keyServer.get("0x" + entry.mExpectedFingerprint).getBytes();
|
data = keyServer.get("0x" + entry.mExpectedFingerprint).getBytes();
|
||||||
} else {
|
} else {
|
||||||
log.add(LogType.MSG_IMPORT_FETCH_KEYSERVER, 1, entry.mKeyIdHex);
|
log.add(LogType.MSG_IMPORT_FETCH_KEYSERVER, 1, entry.mKeyIdHex);
|
||||||
@ -212,6 +212,7 @@ public class ImportExportOperation extends BaseOperation {
|
|||||||
key = merged;
|
key = merged;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
log.add(LogType.MSG_IMPORT_FETCH_ERROR_DECODE, 2);
|
||||||
key = UncachedKeyRing.decodeFromData(data);
|
key = UncachedKeyRing.decodeFromData(data);
|
||||||
}
|
}
|
||||||
} catch (Keyserver.QueryFailedException e) {
|
} catch (Keyserver.QueryFailedException e) {
|
||||||
|
@ -947,11 +947,11 @@
|
|||||||
<item quantity="other">"Importing %d keys"</item>
|
<item quantity="other">"Importing %d keys"</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="msg_import_fetch_error_decode">"Error decoding retrieved keyring!"</string>
|
<string name="msg_import_fetch_error_decode">"Error decoding retrieved keyring!"</string>
|
||||||
<string name="msg_import_fetch_error">"Key could not be fetched! (Network problems?)"</string>
|
<string name="msg_import_fetch_error">"Key could not be retrieved! (Network problems?)"</string>
|
||||||
<string name="msg_import_fetch_keybase">"Fetching from keybase.io: %s"</string>
|
<string name="msg_import_fetch_keybase">"Retrieving from keybase.io: %s"</string>
|
||||||
<string name="msg_import_fetch_keyserver_error">"Could not fetch key from keybase!"</string>
|
<string name="msg_import_fetch_keyserver_error">"Could not retrieve key from keybase!"</string>
|
||||||
<string name="msg_import_fetch_keyserver">"Fetching from keyserver: %s"</string>
|
<string name="msg_import_fetch_keyserver">"Retrieving from keyserver: %s"</string>
|
||||||
<string name="msg_import_fetch_keyserver_ok">"Fingerprint of fetched key didn't match expected!"</string>
|
<string name="msg_import_fetch_keyserver_ok">"Key retrieval successful"</string>
|
||||||
<string name="msg_import_keyserver">"Using keyserver %s"</string>
|
<string name="msg_import_keyserver">"Using keyserver %s"</string>
|
||||||
<string name="msg_import_fingerprint_error">"Fingerprint of fetched key didn't match expected!"</string>
|
<string name="msg_import_fingerprint_error">"Fingerprint of fetched key didn't match expected!"</string>
|
||||||
<string name="msg_import_fingerprint_ok">"Fingerprint check OK"</string>
|
<string name="msg_import_fingerprint_ok">"Fingerprint check OK"</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user