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 <cfergeau@redhat.com>
This commit is contained in:
Christophe Fergeau
2024-06-28 11:05:46 +02:00
parent c86386ed06
commit 0d0418a5bf

View File

@ -57,9 +57,7 @@ func startHostForwarder(mc *vmconfigs.MachineConfig, provider vmconfigs.VMProvid
runDir := dirs.RuntimeDir
cmd.PidFile = filepath.Join(runDir.GetPath(), "gvproxy.pid")
if logrus.IsLevelEnabled(logrus.DebugLevel) {
cmd.LogFile = filepath.Join(runDir.GetPath(), "gvproxy.log")
}
cmd.LogFile = filepath.Join(runDir.GetPath(), "gvproxy.log")
cmd.SSHPort = mc.SSH.Port