mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
removing hook ordering message from non-development runs
This commit is contained in:
@@ -33,7 +33,7 @@ var fs = require('fs'),
|
||||
} else next();
|
||||
},
|
||||
function(next) {
|
||||
winston.info('[plugins] Sorting hooks to fire in priority sequence');
|
||||
if (global.env === 'development') winston.info('[plugins] Sorting hooks to fire in priority sequence');
|
||||
Object.keys(_self.loadedHooks).forEach(function(hook) {
|
||||
var hooks = _self.loadedHooks[hook];
|
||||
hooks = hooks.sort(function(a, b) {
|
||||
|
||||
Reference in New Issue
Block a user