@@ -337,14 +337,13 @@ func (s *Service) createCertManager(hosts []string, options ServiceOptions) (Cer
337
337
}
338
338
339
339
func (s * Service ) createAutoCertHostPolicy (hosts []string , options ServiceOptions ) (autocert.HostPolicy , error ) {
340
- slog .Info ("createAutoCertHostPolicy called" , options . TLSOnDemandUrl , len ( hosts ), "🚨 " , "ok" )
340
+ slog .Info ("createAutoCertHostPolicy called" , "url " , options . TLSOnDemandUrl )
341
341
342
342
if options .TLSOnDemandUrl == "" {
343
343
return autocert .HostWhitelist (hosts ... ), nil
344
344
}
345
345
346
346
_ , err := url .ParseRequestURI (options .TLSOnDemandUrl )
347
-
348
347
if err != nil {
349
348
slog .Error ("Unable to parse the tls_on_demand_url URL" )
350
349
return nil , err
@@ -353,10 +352,9 @@ func (s *Service) createAutoCertHostPolicy(hosts []string, options ServiceOption
353
352
slog .Info ("Will use the tls_on_demand_url URL" )
354
353
355
354
return func (ctx context.Context , host string ) error {
356
- slog .Info ("Get a certificate for " , host , "🤞" )
355
+ slog .Info ("Get a certificate" , " host" , host )
357
356
358
357
resp , err := http .Get (fmt .Sprintf ("%s?host=%s" , options .TLSOnDemandUrl , url .QueryEscape (host )))
359
-
360
358
if err != nil {
361
359
slog .Error ("Unable to reach the TLS on demand URL" , host , err )
362
360
return err
0 commit comments