fix: hook names getting objectified by winston

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 03305db845
commit 6472a06515

@ -99,7 +99,7 @@ module.exports = function (Plugins) {
} }
var hookList = Plugins.loadedHooks[hook]; var hookList = Plugins.loadedHooks[hook];
var hookType = hook.split(':')[0]; var hookType = hook.split(':')[0];
winston.verbose('[plugins/fireHook]', hook); winston.verbose('[plugins/fireHook] ' + hook);
switch (hookType) { switch (hookType) {
case 'filter': case 'filter':
fireFilterHook(hook, hookList, params, done); fireFilterHook(hook, hookList, params, done);

Loading…
Cancel
Save