This commit is contained in:
Arwid Thornström
2024-03-20 16:52:36 +01:00
parent 26a6b3617e
commit 690abacdce
+2 -3
View File
@@ -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}`);