mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-11 08:34:38 -05:00
Log secret expiry on startup
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fa710e3716
commit
f89b17d46b
5
main.go
5
main.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user