]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/cmd/govpn-server/conf.go
Split long lines
[govpn.git] / src / cypherpunks.ru / govpn / cmd / govpn-server / conf.go
index 80581ab4418db9ec8474aeab8ef24664525fdcc3..d357b2536c9d25158943a2f363b0113761a27ba6 100644 (file)
@@ -125,7 +125,12 @@ func confRefresh() error {
                return errors.Wrap(err, "confRead")
        }
        confs = *newConfs
-       logger.WithFields(fields).WithField("newConfs", len(confs)).Debug("idsCache.Update")
+       logger.WithFields(
+               fields,
+       ).WithField(
+               "newConfs",
+               len(confs),
+       ).Debug("idsCache.Update")
        if err = idsCache.Update(newConfs); err != nil {
                return errors.Wrap(err, "idsCache.Update")
        }
@@ -138,13 +143,17 @@ func confInit() {
        err := confRefresh()
        fields := logrus.Fields{"func": "confInit"}
        if err != nil {
-               logger.WithError(err).WithFields(fields).Fatal("Couldn't perform initial configuration read")
+               logger.WithError(err).WithFields(
+                       fields,
+               ).Fatal("Couldn't perform initial configuration read")
        }
        go func() {
                for {
                        time.Sleep(refreshRate)
                        if err = confRefresh(); err != nil {
-                               logger.WithError(err).WithFields(fields).Error("Couldn't refresh configuration")
+                               logger.WithError(err).WithFields(
+                                       fields,
+                               ).Error("Couldn't refresh configuration")
                        }
                }
        }()