Skip to content

Commit

Permalink
fix: move pyroscope debug to trace (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored May 21, 2024
1 parent d34d02e commit 0d22ee4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/fatih/color v1.17.0
github.com/grafana/otel-profiling-go v0.5.1
github.com/grafana/pyroscope-go v1.1.1
github.com/hamba/logger/v2 v2.5.1
github.com/hamba/logger/v2 v2.6.0
github.com/hamba/statter/v2 v2.3.5
github.com/stretchr/testify v1.9.0
github.com/urfave/cli/v2 v2.27.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ github.com/grafana/pyroscope-go/godeltaprof v0.1.6 h1:nEdZ8louGAplSvIJi1HVp7kWvF
github.com/grafana/pyroscope-go/godeltaprof v0.1.6/go.mod h1:Tk376Nbldo4Cha9RgiU7ik8WKFkNpfds98aUzS8omLE=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM=
github.com/hamba/logger/v2 v2.5.1 h1:EM+S6CPYIs66XmW9kK/RBghgtkLcO4kQWWPAlsIwNR4=
github.com/hamba/logger/v2 v2.5.1/go.mod h1:b+y7XddZMTTSIjKdOOIHWlhg1hMoE9eKhanB9wPNLj0=
github.com/hamba/logger/v2 v2.6.0 h1:73CPbhY5luRzITKeX8hhdL4K3jezsH8cyTYgcOl7JeA=
github.com/hamba/logger/v2 v2.6.0/go.mod h1:JEikfAmI6C/vaSE8MSb4SXTgWclNSN6tmdyyLv3/ATA=
github.com/hamba/statter/v2 v2.3.5 h1:qAFu+n4Q08LtrBdcBYexItfOoJJ16D/m/boq8fm5hn4=
github.com/hamba/statter/v2 v2.3.5/go.mod h1:LS7DqETxoVpRraL3tn9O70zYCaVRL2A98SvZw/LZkAI=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
Expand Down
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var LogFlags = Flags{
&cli.StringFlag{
Name: FlagLogLevel,
Value: "info",
Usage: "Specify the log level. e.g. 'debug', 'info', 'error'.",
Usage: "Specify the log level. e.g. 'trace', 'debug', 'info', 'error'.",
EnvVars: []string{"LOG_LEVEL"},
},
&cli.StringSliceFlag{
Expand Down
2 changes: 1 addition & 1 deletion profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (a pyroLogAdapter) Infof(format string, args ...any) {
}

func (a pyroLogAdapter) Debugf(format string, args ...any) {
a.log.Debug(fmt.Sprintf(format, args...))
a.log.Trace(fmt.Sprintf(format, args...))
}

func (a pyroLogAdapter) Errorf(format string, args ...any) {
Expand Down

0 comments on commit 0d22ee4

Please sign in to comment.