diff --git a/lib/github.js b/lib/github.js index db30cb8..1b35340 100644 --- a/lib/github.js +++ b/lib/github.js @@ -28,6 +28,7 @@ module.exports = function (options) { function cmdGet (msg, done) { let moduleName = msg.name + let cache = opts.cache let registry = opts.registry + moduleName let context = this @@ -39,6 +40,7 @@ function cmdGet (msg, done) { } if (github && !msg.update) { + context.log.debug('Returned cached information: ', moduleName) return done(null, {ok: true, data: github.data$(github)}) } @@ -195,7 +197,7 @@ function aliasGet (msg, done) { var seneca = this var payload = {name: msg.name} - seneca.act('role:github,cmd:get', payload, (err, res) => { + seneca.act(`role:github, cmd:get, update: ${msg.update}`, payload, (err, res) => { if (err) { return done(null, {ok: false, err: err}) }