mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Installed log4js as logging framework
This commit is contained in:
parent
22b00264d8
commit
b30849c2f2
7 changed files with 41 additions and 27 deletions
|
@ -319,11 +319,6 @@ function handleUserInfoUpdate(client, message)
|
|||
}
|
||||
}
|
||||
|
||||
function errlog(name, value)
|
||||
{
|
||||
console.error(name+"=" + JSON.stringify(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles a USERINFO_UPDATE, that means that a user have changed his color or name. Anyway, we get both informations
|
||||
* This Method is nearly 90% copied out of the Etherpad Source Code. So I can't tell you what happens here exactly
|
||||
|
@ -418,7 +413,7 @@ function handleUserChanges(client, message)
|
|||
|
||||
if (Changeset.oldLen(changeset) != prevText.length)
|
||||
{
|
||||
console.log("Can't apply USER_CHANGES "+changeset+" with oldLen " + Changeset.oldLen(changeset) + " to document of length " + prevText.length);
|
||||
console.warn("Can't apply USER_CHANGES "+changeset+" with oldLen " + Changeset.oldLen(changeset) + " to document of length " + prevText.length);
|
||||
client.json.send({disconnect:"badChangeset"});
|
||||
callback();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue