A variety of logging improvements to track down bugs (#1832)
* Log when we get a blocked numbers sync message * Save three old signed keys in addition to the current active * Remove the mystery from all the error-related log messages * Log successful load of signed key - to help debug prekey errors * removeSignedPreKey: Don't hang or crash in error cases * Log on top-level unhandled promise rejection * Remove trailing comma in param list, Electron 1.6 does not like * Harden top-level error handler for strange object shapes
This commit is contained in:
parent
a5923c2177
commit
44da6924f9
7 changed files with 28 additions and 10 deletions
|
@ -314,8 +314,11 @@
|
|||
errors = [errors];
|
||||
}
|
||||
errors.forEach(function(e) {
|
||||
console.log(e);
|
||||
console.log(e.reason, e.stack);
|
||||
console.log(
|
||||
'Message.saveErrors:',
|
||||
e && e.reason ? e.reason : null,
|
||||
e && e.stack ? e.stack : e
|
||||
);
|
||||
});
|
||||
errors = errors.map(function(e) {
|
||||
if (e.constructor === Error ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue