diff --git a/src/commands/aws/logs/logs.ts b/src/commands/aws/logs/logs.ts index 31a923d..57af5de 100644 --- a/src/commands/aws/logs/logs.ts +++ b/src/commands/aws/logs/logs.ts @@ -10,7 +10,7 @@ module.exports = { description: 'Tail a log in cloudwatch (l) (WIP)', hidden: false, run: async (toolbox: GluegunMenuToolbox) => { - const { system, strings } = toolbox; + const { print, system, strings } = toolbox; const groups = JSON.parse( strings.trim(await system.run(`aws logs describe-log-groups`)) @@ -40,8 +40,7 @@ module.exports = { ]); child.stdout.setEncoding('utf8'); child.stdout.on('data', function(data) { - // Here is where the output goes - console.log(data); + print.info(data); }); child.stderr.on('data', data => { console.error(`stderr: ${data}`);