logging JS errors to backend logs

This commit is contained in:
azivner
2017-12-01 22:28:22 -05:00
parent 02e5d20d44
commit cba9d8b5c1
6 changed files with 59 additions and 11 deletions

View File

@@ -144,7 +144,7 @@ const noteTree = (function() {
function prepareNoteTreeInner(parentNoteId) {
const childNoteIds = parentToChildren[parentNoteId];
if (!childNoteIds) {
console.log("No children for " + parentNoteId + ". This shouldn't happen.");
messaging.logError("No children for " + parentNoteId + ". This shouldn't happen.");
return;
}
@@ -201,7 +201,7 @@ const noteTree = (function() {
const parents = childToParents[childNoteId];
if (!parents) {
console.error("No parents found for " + childNoteId);
messaging.logError("No parents found for " + childNoteId);
return;
}
@@ -218,7 +218,7 @@ const noteTree = (function() {
break;
}
else {
console.log("No parents, can't activate node.");
messaging.logError("No parents, can't activate node.");
return;
}
}