From 690abacdce24d049bc4f2ecf7355288ebe752cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arwid=20Thornstro=CC=88m?= Date: Wed, 20 Mar 2024 16:52:36 +0100 Subject: [PATCH] logs --- src/commands/aws/logs/logs.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}`);