forked from Ivasoft/objectivefs-docker-volume
Collect logs from mount.objectivefs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
1
main.go
1
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.Stderr = log.StandardLogger().Out
|
||||
log.Info("Mount ObjectiveFS Volume '%s': '%s'", r.Name, cmd)
|
||||
if err := cmd.Run(); err != nil {
|
||||
return &volume.MountResponse{}, fmt.Errorf("unexpected error mounting '%s' check log (/var/log/syslog or /var/log/messages): %s", r.Name, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user