Skip to content

Commit

Permalink
chore: log maxprocs (#257)
Browse files Browse the repository at this point in the history
* chore: log maxprocs

* Update caddy/frankenphp/main.go

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>

---------

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
  • Loading branch information
dunglas and ruudk committed Oct 9, 2023
1 parent c615fe0 commit 51038bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion caddy/frankenphp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package main

import (
"github.com/caddyserver/caddy/v2"
caddycmd "github.com/caddyserver/caddy/v2/cmd"
"go.uber.org/automaxprocs/maxprocs"

Expand All @@ -13,7 +14,8 @@ import (
)

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

func main() {
Expand Down

0 comments on commit 51038bb

Please sign in to comment.