Maybe drop the `output` variable and use directly `cmd.stdout` in the log statement?