Log secret expiry on startup
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fa710e3716
commit
f89b17d46b
1 changed files with 4 additions and 1 deletions
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 a new issue