mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
PadMessageHandler: Improve logging of pre-CLIENT_READY drops
This should make it easier to see what is emitting the the messages so it can be fixed.
This commit is contained in:
parent
91e99c84ca
commit
1ad134a538
1 changed files with 5 additions and 2 deletions
|
@ -210,8 +210,11 @@ exports.handleMessage = async (socket, message) => {
|
||||||
|
|
||||||
const auth = thisSession.auth;
|
const auth = thisSession.auth;
|
||||||
if (!auth) {
|
if (!auth) {
|
||||||
console.error('Auth was never applied to a session. If you are using the ' +
|
const ip = settings.disableIPlogging ? 'ANONYMOUS' : (socket.request.ip || '<unknown>');
|
||||||
'stress-test tool then restart Etherpad and the Stress test tool.');
|
const msg = JSON.stringify(message, null, 2);
|
||||||
|
messageLogger.error(`Dropping pre-CLIENT_READY message from IP ${ip}: ${msg}`);
|
||||||
|
messageLogger.debug(
|
||||||
|
'If you are using the stress-test tool then restart Etherpad and the Stress test tool.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue