mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Merge pull request #1495 from disy-mk/patch-1
Explicitly log creation of pad
This commit is contained in:
commit
e87843c5ae
1 changed files with 7 additions and 1 deletions
|
@ -915,8 +915,14 @@ function handleClientReady(client, message)
|
||||||
sessioninfos[client.id].readOnlyPadId = padIds.readOnlyPadId;
|
sessioninfos[client.id].readOnlyPadId = padIds.readOnlyPadId;
|
||||||
sessioninfos[client.id].readonly = padIds.readonly;
|
sessioninfos[client.id].readonly = padIds.readonly;
|
||||||
|
|
||||||
|
//Log creation/(re-)entering of a pad
|
||||||
client.get('remoteAddress', function(er, ip) {
|
client.get('remoteAddress', function(er, ip) {
|
||||||
accessLogger.info('[ENTER] Pad "'+padIds.padId+'": Client '+client.id+' with IP "'+ip+'" entered the pad')
|
if(pad.head > 0) {
|
||||||
|
accessLogger.info('[ENTER] Pad "'+padIds.padId+'": Client '+client.id+' with IP "'+ip+'" entered the pad');
|
||||||
|
}
|
||||||
|
else if(pad.head == 0) {
|
||||||
|
accessLogger.info('[CREATE] Pad "'+padIds.padId+'": Client '+client.id+' with IP "'+ip+'" created the pad');
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
//If this is a reconnect, we don't have to send the client the ClientVars again
|
//If this is a reconnect, we don't have to send the client the ClientVars again
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue