From 0ac241d298caf6966ec75bf537546aa1c52e173a Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 11 Nov 2024 13:18:38 -0700 Subject: [PATCH 1/2] qemu: reduce logspam for qemu runner Signed-off-by: Jason Hall --- pkg/container/qemu_runner.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/container/qemu_runner.go b/pkg/container/qemu_runner.go index 282a0ab36..5f0017af3 100644 --- a/pkg/container/qemu_runner.go +++ b/pkg/container/qemu_runner.go @@ -76,9 +76,8 @@ func (bw *qemu) Name() string { // Run runs a Qemu task given a Config and command string. func (bw *qemu) Run(ctx context.Context, cfg *Config, envOverride map[string]string, args ...string) error { - clog.InfoContextf(ctx, "running command %s", strings.Join(args, " ")) - log := clog.FromContext(ctx) + log.Debugf("running command %s", strings.Join(args, " ")) stdout, stderr := logwriter.New(log.Info), logwriter.New(log.Warn) defer stdout.Close() defer stderr.Close() From 8bf64b91cdd4380ef85f167fe390cca2c6c459db Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 11 Nov 2024 13:20:19 -0700 Subject: [PATCH 2/2] anotha one Signed-off-by: Jason Hall --- pkg/container/qemu_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/container/qemu_runner.go b/pkg/container/qemu_runner.go index 5f0017af3..5112681be 100644 --- a/pkg/container/qemu_runner.go +++ b/pkg/container/qemu_runner.go @@ -783,7 +783,7 @@ func sendSSHCommand(ctx context.Context, user, address string, clog.FromContext(ctx).Infof("running (%d) %v", len(command), cmd) err = session.Run(cmd) if err != nil { - clog.FromContext(ctx).Errorf("Failed to run command %v: %s", command, err) + clog.FromContext(ctx).Errorf("Failed to run command: %v", err) return err }