Skip to content

Commit 201427b

Browse files
committed
chore: lint the code
1 parent 2e0ef39 commit 201427b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/server/service.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,13 @@ func (s *Service) createCertManager(hosts []string, options ServiceOptions) (Cer
337337
}
338338

339339
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)
341341

342342
if options.TLSOnDemandUrl == "" {
343343
return autocert.HostWhitelist(hosts...), nil
344344
}
345345

346346
_, err := url.ParseRequestURI(options.TLSOnDemandUrl)
347-
348347
if err != nil {
349348
slog.Error("Unable to parse the tls_on_demand_url URL")
350349
return nil, err
@@ -353,10 +352,9 @@ func (s *Service) createAutoCertHostPolicy(hosts []string, options ServiceOption
353352
slog.Info("Will use the tls_on_demand_url URL")
354353

355354
return func(ctx context.Context, host string) error {
356-
slog.Info("Get a certificate for", host, "🤞")
355+
slog.Info("Get a certificate", "host", host)
357356

358357
resp, err := http.Get(fmt.Sprintf("%s?host=%s", options.TLSOnDemandUrl, url.QueryEscape(host)))
359-
360358
if err != nil {
361359
slog.Error("Unable to reach the TLS on demand URL", host, err)
362360
return err

0 commit comments

Comments
 (0)