Преглед изворни кода

don't block startup on failure to configure SSH (#1520)

Jack Doan пре 1 месец
родитељ
комит
0f305d5397
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      main.go

+ 2 - 1
main.go

@@ -75,7 +75,8 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
 	if c.GetBool("sshd.enabled", false) {
 		sshStart, err = configSSH(l, ssh, c)
 		if err != nil {
-			return nil, util.ContextualizeIfNeeded("Error while configuring the sshd", err)
+			l.WithError(err).Warn("Failed to configure sshd, ssh debugging will not be available")
+			sshStart = nil
 		}
 	}