Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
add log for content hash failures
zadam61e8cbbcbadc
diff --git a/src/services/content_hash.js b/src/services/content_hash.jsindex 5384a34921..c0c0f647d0 100644--- a/src/services/content_hash.js+++ b/src/services/content_hash.js@@ -56,6 +56,8 @@ async function checkContentHashes(otherHashes) {if (hashes[key] !== otherHashes[key]) {allChecksPassed = false;+ log.info(`Content hash check for ${key} FAILED. Local is ${hashes[key]}, remote is ${otherHashes[key]}`);+if (key !== 'recent_notes') {// let's not get alarmed about recent notes which get updated often and can cause failures in race conditionsws.sendMessageToAllClients({type: 'sync-hash-check-failed'});