Log secret expiry on startup

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-06-10 20:40:59 +02:00
parent fa710e3716
commit f89b17d46b
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -111,7 +111,10 @@ func main() {
r.HandleFunc("/", handleIndex)
r.PathPrefix("/").HandlerFunc(assetDelivery)
logrus.WithField("version", version).Info("ots started")
logrus.WithFields(logrus.Fields{
"secret_expiry": time.Duration(cfg.SecretExpiry) * time.Second,
"version": version,
}).Info("ots started")
server := &http.Server{
Addr: cfg.Listen,