1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed various bugs

This commit is contained in:
Laurent Cozic
2017-07-11 00:17:03 +01:00
parent 4adc9b30fb
commit 4fa65de31d
6 changed files with 15 additions and 8 deletions

View File

@ -66,6 +66,7 @@ class Synchronizer {
async logSyncSummary(report) {
for (let n in report) {
if (!report.hasOwnProperty(n)) continue;
if (n == 'errors') continue;
this.logger().info(n + ': ' + (report[n] ? report[n] : '-'));
}
let folderCount = await Folder.count();
@ -79,8 +80,8 @@ class Synchronizer {
this.logger().warn('There was some errors:');
for (let i = 0; i < report.errors.length; i++) {
let e = report.errors[i];
let msg = e && e.message ? e.message : JSON.stringify(e);
this.logger().warn(msg);
//let msg = JSON.stringify(e); //e && e.message ? e.message : JSON.stringify(e);
this.logger().warn(e);
}
}
}