Skip to content

Build your personal knowledge base with Trilium Notes

add log for content hash failures

zadam61e8cbbcbadc
diff --git a/src/services/content_hash.js b/src/services/content_hash.js
index 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 conditions
ws.sendMessageToAllClients({type: 'sync-hash-check-failed'});