fix: debug inclusion

This commit is contained in:
cha0s 2018-12-24 13:20:05 -06:00
parent 89f98034d3
commit efbe79abb1

View File

@ -1,5 +1,7 @@
const {sendActionToService} = require('@truss/comm');
const debug = require('debug')('truss:gateway:actions');
module.exports = (serviceMap) => ({
'truss/hook-services': ({payload: {hook, args}}) => {
if (!(hook in serviceMap.hooks)) { return []; }
@ -16,7 +18,7 @@ module.exports = (serviceMap) => ({
});
function invokeHookFlat(services, hook, args) {
debug(`invoking hook flat(${hook}(${JSON.stringify(args, null, ' ')}))...`);
debug(`invoking hookFlat(${hook}(${JSON.stringify(args, null, ' ')}))...`);
invokeHookFlatInternal(services, hook, args);
}