Commit 454f39e4 authored by Nelson GONCALVES's avatar Nelson GONCALVES
Browse files

Use laclasse logger instead of console.log

parent 1c63a576
var PadMessageHandler = require("ep_etherpad-lite/node/handler/PadMessageHandler.js");
const PadMessageHandler = require("ep_etherpad-lite/node/handler/PadMessageHandler.js");
const log4js = require('log4js');
laclasseLogger = log4js.getLogger("ep_laclasse");
exports.userLeave = function(hook, session, cb) {
const userCount = PadMessageHandler.padUsersCount(session.padId).padUsersCount
console.log('%s left pad %s - %d user(s) still editing the pad', session.author, session.padId, userCount);
laclasseLogger.log('%s left pad %s - %d user(s) still editing the pad', session.author, session.padId, userCount);
/**
* TODO
* 2- If no author call a webhook on laclasse-service to trigger saving of file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment