From 9eeed14937af1970b694892df94cdb0c9ef58c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Thu, 25 May 2023 09:49:21 +0200 Subject: [PATCH] Redirect also stdout to log. --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index bbee171..8325a36 100644 --- a/main.go +++ b/main.go @@ -154,6 +154,7 @@ func (d ofsDriver) Mount(r *volume.MountRequest) (*volume.MountResponse, error) } cmd := exec.Command("/sbin/mount.objectivefs", "-o"+v.opts, v.fs, v.volume.Mountpoint) cmd.Env = v.env + cmd.Stdout = log.StandardLogger().Out cmd.Stderr = log.StandardLogger().Out log.Info("Mount ObjectiveFS Volume '%s': '%s'", r.Name, cmd) if err := cmd.Run(); err != nil {