Skip to content

Commit

Permalink
WSL: network-setup: improve logging
Browse files Browse the repository at this point in the history
This just updates the logging to make it easier for debugging.  No
functional change.

Signed-off-by: Mark Yen <mark.yen@suse.com>
  • Loading branch information
mook-as committed Dec 19, 2024
1 parent 9652d2b commit 03482c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/go/networking/cmd/network/setup_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 03482c1

Please sign in to comment.