summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwebzwo0i <webzwo0i@c3d2.de>2015-03-02 11:14:24 +0100
committerwebzwo0i <webzwo0i@c3d2.de>2015-03-02 11:14:24 +0100
commit0f82cd871141a4ca465e171dd4eb0fe6a73058f6 (patch)
tree4fa3a870d0cc2b9a6020dad6212770aafef66cad /src
parent683c9dfb7cc01ef46d6f783102c6acb4b32255dd (diff)
downloadetherpad-lite-0f82cd871141a4ca465e171dd4eb0fe6a73058f6.zip
print revision numbers - not changesets - in warn-log
Diffstat (limited to 'src')
-rw-r--r--src/node/handler/PadMessageHandler.js3
-rw-r--r--src/static/js/Changeset.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index e585b652..ac8904f8 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -1635,7 +1635,8 @@ function composePadChangesets(padId, startNum, endNum, callback)
changeset = Changeset.compose(changeset, cs, pool);
}
} catch(e){
- console.warn("failed to compose cs in pad:",padId);
+ // r-1 indicates the rev that was build starting with startNum, applying startNum+1, +2, +3
+ console.warn("failed to compose cs in pad:",padId," startrev:",startNum," current rev:",r);
return callback(e);
}
diff --git a/src/static/js/Changeset.js b/src/static/js/Changeset.js
index c97756b8..df180f9c 100644
--- a/src/static/js/Changeset.js
+++ b/src/static/js/Changeset.js
@@ -1318,7 +1318,7 @@ exports.compose = function (cs1, cs2, pool) {
var unpacked2 = exports.unpack(cs2);
var len1 = unpacked1.oldLen;
var len2 = unpacked1.newLen;
- exports.assert(len2 == unpacked2.oldLen, "mismatched composition of two changesets - cs1:",cs1," and cs2:",cs2);
+ exports.assert(len2 == unpacked2.oldLen, "mismatched composition of two changesets");
var len3 = unpacked2.newLen;
var bankIter1 = exports.stringIterator(unpacked1.charBank);
var bankIter2 = exports.stringIterator(unpacked2.charBank);