fix: debug inclusion
This commit is contained in:
parent
89f98034d3
commit
efbe79abb1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user