Logging for prekey fetches, load of log files (#1836)
* Log the files discovered in logPath I've encountered some logs which include very old entries; and my suspicion is that we're not cleaning up old log files properly. * Log prekey fetches (success and failure), just like signed keys * Force log file information into the final web-ready log
This commit is contained in:
@@ -186,11 +186,15 @@
|
||||
var prekey = new PreKey({id: keyId});
|
||||
return new Promise(function(resolve) {
|
||||
prekey.fetch().then(function() {
|
||||
console.log('Successfully fetched prekey:', keyId);
|
||||
resolve({
|
||||
pubKey: prekey.attributes.publicKey,
|
||||
privKey: prekey.attributes.privateKey
|
||||
pubKey: prekey.get('publicKey'),
|
||||
privKey: prekey.get('privateKey'),
|
||||
});
|
||||
}).fail(resolve);
|
||||
}, function() {
|
||||
console.log('Failed to load prekey:', keyId);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
},
|
||||
storePreKey: function(keyId, keyPair) {
|
||||
|
Reference in New Issue
Block a user