Configure Systemd Socket Activation

as new way for Poseidon to accept connections. This should reduce our issues caused by deployments.
This commit is contained in:
Maximilian Paß
2023-12-02 16:56:43 +01:00
parent eaddc65989
commit 511b873e16
2 changed files with 8 additions and 2 deletions

View File

@@ -208,9 +208,9 @@ func serveHTTPListener(server *http.Server, l net.Listener) {
}
if errors.Is(err, http.ErrServerClosed) {
log.WithError(err).WithField("listener", l).Info("Server closed")
log.WithError(err).WithField("listener", l.Addr()).Info("Server closed")
} else {
log.WithError(err).WithField("listener", l).Error("Error during listening and serving")
log.WithError(err).WithField("listener", l.Addr()).Error("Error during listening and serving")
}
}