Skip to content

Commit

Permalink
kbp: log acme directory url
Browse files Browse the repository at this point in the history
  • Loading branch information
songgao committed Sep 6, 2020
1 parent 79dd917 commit c642efc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/kbfs/libpages/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,14 @@ func ListenAndServe(ctx context.Context,
return err
}

if manager.Client == nil || len(manager.Client.DirectoryURL) == 0 {
config.Logger.Info("ListenAndServe",
zap.String("acme directory url", autocert.DefaultACMEDirectory))
} else {
config.Logger.Info("ListenAndServe",
zap.String("acme directory url", manager.Client.DirectoryURL))
}

httpsServer := http.Server{
Handler: server,
ReadHeaderTimeout: httpReadHeaderTimeout,
Expand Down

0 comments on commit c642efc

Please sign in to comment.