signoz/pkg/sqlstore/logger.go

13 lines
279 B
Go
Raw Normal View History

2025-07-21 00:16:50 +05:30
package sqlstore
import "log/slog"
type bunLogger struct {
logger *slog.Logger
}
func (l *bunLogger) Printf(format string, v ...interface{}) {
// the no lint directive is needed because the bun logger does not accept context
l.logger.Info(format, v...) //nolint:sloglint
}