Various logging cleanups

* don't just log errors without any context as to where they came from or what
   they mean
 * avoid the use of '%s' and multi-argument console.log because it looks awful
   under karma.
This commit is contained in:
Richard van der Hoff 2017-06-20 17:38:02 +01:00
parent 6de48d628f
commit cd73139af5
3 changed files with 12 additions and 10 deletions

View file

@ -84,7 +84,9 @@ class MatrixClientPeg {
let promise = this.matrixClient.store.startup();
// log any errors when starting up the database (if one exists)
promise.catch((err) => { console.error(err); });
promise.catch((err) => {
console.error(`Error starting matrixclient store: ${err}`);
});
// regardless of errors, start the client. If we did error out, we'll
// just end up doing a full initial /sync.