From 07a8af51884cb82d891962dce3364e29f1606b6e Mon Sep 17 00:00:00 2001 From: Mark Yen Date: Thu, 19 Dec 2024 15:52:19 -0800 Subject: [PATCH] WSL: network-setup: improve logging This just updates the logging to make it easier for debugging. No functional change. Signed-off-by: Mark Yen --- src/go/networking/cmd/network/setup_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/go/networking/cmd/network/setup_linux.go b/src/go/networking/cmd/network/setup_linux.go index edbad049b9d..5a7c636bb0d 100644 --- a/src/go/networking/cmd/network/setup_linux.go +++ b/src/go/networking/cmd/network/setup_linux.go @@ -144,13 +144,15 @@ func main() { logrus.Fatalf("failed to switch back to original namespace: %v", err) } if err := configureVethPair(WSLVeth, WSLVethIP); err != nil { - logrus.Fatalf("failed setting up veth: %s for rancher desktop namespace: %v", WSLVeth, err) + logrus.Fatalf("failed setting up veth: %s for default namespace: %v", WSLVeth, err) } if err := originNS.Close(); err != nil { logrus.Errorf("failed to close original NS, ignoring error: %v", err) } + logrus.Trace("Network setup complete, waiting for vm-switch") + if err := vmSwitchCmd.Wait(); err != nil { logrus.Errorf("vm-switch exited with error: %v", err) }