removing hook ordering message from non-development runs

This commit is contained in:
Julian Lam
2013-09-03 22:03:04 -04:00
parent 45e24c54ce
commit 1d52557562

View File

@@ -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) {