Re-enable passing a logfile to gvproxy

Re-enable the commented-out code that passed the path to a logfile to
gvproxy when the user passes `--log-level=debug`

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
Jake Correnti
2024-02-06 16:14:10 -05:00
parent 69d54c482e
commit c023b789f2

View File

@ -73,11 +73,9 @@ func startNetworking(mc *vmconfigs.MachineConfig, provider vmconfigs.VMProvider)
// GvProxy PID file path is now derived
cmd.PidFile = filepath.Join(runDir.GetPath(), "gvproxy.pid")
// TODO This can be re-enabled when gvisor-tap-vsock #305 is merged
// debug is set, we dump to a logfile as well
// if logrus.IsLevelEnabled(logrus.DebugLevel) {
// cmd.LogFile = filepath.Join(runDir.GetPath(), "gvproxy.log")
// }
if logrus.IsLevelEnabled(logrus.DebugLevel) {
cmd.LogFile = filepath.Join(runDir.GetPath(), "gvproxy.log")
}
cmd.SSHPort = mc.SSH.Port