Skip to content

Commit 0d22ee4

Browse files
authored
fix: move pyroscope debug to trace (#259)
1 parent d34d02e commit 0d22ee4

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/fatih/color v1.17.0
77
github.com/grafana/otel-profiling-go v0.5.1
88
github.com/grafana/pyroscope-go v1.1.1
9-
github.com/hamba/logger/v2 v2.5.1
9+
github.com/hamba/logger/v2 v2.6.0
1010
github.com/hamba/statter/v2 v2.3.5
1111
github.com/stretchr/testify v1.9.0
1212
github.com/urfave/cli/v2 v2.27.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ github.com/grafana/pyroscope-go/godeltaprof v0.1.6 h1:nEdZ8louGAplSvIJi1HVp7kWvF
3333
github.com/grafana/pyroscope-go/godeltaprof v0.1.6/go.mod h1:Tk376Nbldo4Cha9RgiU7ik8WKFkNpfds98aUzS8omLE=
3434
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is=
3535
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM=
36-
github.com/hamba/logger/v2 v2.5.1 h1:EM+S6CPYIs66XmW9kK/RBghgtkLcO4kQWWPAlsIwNR4=
37-
github.com/hamba/logger/v2 v2.5.1/go.mod h1:b+y7XddZMTTSIjKdOOIHWlhg1hMoE9eKhanB9wPNLj0=
36+
github.com/hamba/logger/v2 v2.6.0 h1:73CPbhY5luRzITKeX8hhdL4K3jezsH8cyTYgcOl7JeA=
37+
github.com/hamba/logger/v2 v2.6.0/go.mod h1:JEikfAmI6C/vaSE8MSb4SXTgWclNSN6tmdyyLv3/ATA=
3838
github.com/hamba/statter/v2 v2.3.5 h1:qAFu+n4Q08LtrBdcBYexItfOoJJ16D/m/boq8fm5hn4=
3939
github.com/hamba/statter/v2 v2.3.5/go.mod h1:LS7DqETxoVpRraL3tn9O70zYCaVRL2A98SvZw/LZkAI=
4040
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=

log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var LogFlags = Flags{
2525
&cli.StringFlag{
2626
Name: FlagLogLevel,
2727
Value: "info",
28-
Usage: "Specify the log level. e.g. 'debug', 'info', 'error'.",
28+
Usage: "Specify the log level. e.g. 'trace', 'debug', 'info', 'error'.",
2929
EnvVars: []string{"LOG_LEVEL"},
3030
},
3131
&cli.StringSliceFlag{

profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (a pyroLogAdapter) Infof(format string, args ...any) {
131131
}
132132

133133
func (a pyroLogAdapter) Debugf(format string, args ...any) {
134-
a.log.Debug(fmt.Sprintf(format, args...))
134+
a.log.Trace(fmt.Sprintf(format, args...))
135135
}
136136

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

0 commit comments

Comments
 (0)