mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
plugins: Use a log4js logger for npm messages
This commit is contained in:
parent
8a918fbc46
commit
afb025030c
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
const log4js = require('log4js');
|
||||
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
||||
var hooks = require("ep_etherpad-lite/static/js/pluginfw/hooks");
|
||||
var npm = require("npm");
|
||||
|
@ -9,7 +10,7 @@ const loadNpm = async () => {
|
|||
if (npmIsLoaded) return;
|
||||
await util.promisify(npm.load)({});
|
||||
npmIsLoaded = true;
|
||||
npm.on('log', (message) => console.log('npm: ', message));
|
||||
npm.on('log', log4js.getLogger('npm').log);
|
||||
};
|
||||
|
||||
var tasks = 0
|
||||
|
|
Loading…
Reference in a new issue