diff --git a/services/gateway/actions.js b/services/gateway/actions.js index 7a8afce..664eaaa 100644 --- a/services/gateway/actions.js +++ b/services/gateway/actions.js @@ -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); }