Skip to content

Commit 0d0418a

Browse files
committed
machine: Always use --log-file with gvproxy
The logs are not verbose if `--debug` is not set, and very useful to have if gvproxy exits unexpectedly. Signed-off-by: Christophe Fergeau <[email protected]>
1 parent c86386e commit 0d0418a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/machine/shim/networking.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ func startHostForwarder(mc *vmconfigs.MachineConfig, provider vmconfigs.VMProvid
5757
runDir := dirs.RuntimeDir
5858
cmd.PidFile = filepath.Join(runDir.GetPath(), "gvproxy.pid")
5959

60-
if logrus.IsLevelEnabled(logrus.DebugLevel) {
61-
cmd.LogFile = filepath.Join(runDir.GetPath(), "gvproxy.log")
62-
}
60+
cmd.LogFile = filepath.Join(runDir.GetPath(), "gvproxy.log")
6361

6462
cmd.SSHPort = mc.SSH.Port
6563

0 commit comments

Comments
 (0)