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