mirror of https://github.com/containers/podman.git
podman,varlink: inform user about --timeout 0
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> Closes: #1363 Approved by: rhatdan
This commit is contained in:
parent
ecf84390ef
commit
65c31d49f9
|
@ -75,7 +75,7 @@ func varlinkCmd(c *cli.Context) error {
|
||||||
if err = service.Listen(args[0], timeout); err != nil {
|
if err = service.Listen(args[0], timeout); err != nil {
|
||||||
switch err.(type) {
|
switch err.(type) {
|
||||||
case varlink.ServiceTimeoutError:
|
case varlink.ServiceTimeoutError:
|
||||||
logrus.Infof("varlink service expired (use --timeout to increase session time beyond %d ms)", c.Int64("timeout"))
|
logrus.Infof("varlink service expired (use --timeout to increase session time beyond %d ms, 0 means never timeout)", c.Int64("timeout"))
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return errors.Errorf("unable to start varlink service")
|
return errors.Errorf("unable to start varlink service")
|
||||||
|
|
Loading…
Reference in New Issue