Skip to content

Commit

Permalink
fix: default pprof arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Dec 7, 2023
1 parent eaefba2 commit 48af074
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service/httppprof_pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"net/http/pprof"

"github.com/foomo/keel/log"
"go.uber.org/zap"
)

Expand All @@ -27,9 +26,9 @@ func NewHTTPPProf(l *zap.Logger, name, addr, path string) *HTTP {
return NewHTTP(l, name, addr, handler)
}

func NewDefaultHTTPPProf() *HTTP {
func NewDefaultHTTPPProf(l *zap.Logger) *HTTP {
return NewHTTPPProf(
log.Logger(),
l,
DefaultHTTPPProfName,
DefaultHTTPPProfAddr,
DefaultHTTPPProfPath,
Expand Down

0 comments on commit 48af074

Please sign in to comment.