Skip to content

Commit

Permalink
chore: log max procs setting using Zap
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Oct 9, 2023
1 parent 32295ea commit af16aef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion caddy/mercure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
package main

import (
"github.com/caddyserver/caddy/v2"
caddycmd "github.com/caddyserver/caddy/v2/cmd"

_ "go.uber.org/automaxprocs"
"go.uber.org/automaxprocs/maxprocs"

// plug in Caddy modules here.
_ "github.com/caddyserver/caddy/v2/modules/standard"
_ "github.com/dunglas/mercure/caddy"
)

//nolint:gochecknoinits
func init() {
//nolint:errcheck
maxprocs.Set(maxprocs.Logger(caddy.Log().Sugar().Debugf))
}

func main() {
caddycmd.Main()
}

0 comments on commit af16aef

Please sign in to comment.