From 61e8cbbcbadc7392c4a56c63a8ae58e405b95db8 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 19 Nov 2019 19:07:14 +0100 Subject: [PATCH] add log for content hash failures --- src/services/content_hash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/content_hash.js b/src/services/content_hash.js index 5384a3492..c0c0f647d 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'});