Use logging from app sdk in the resource mod (#103281)
* Use logging from app sdk in the resource mod * make update-workspace * Use app-sdk logging in SQL backend * Use grafana-app logging in tests * make update-workspace * make update-workspace * make update-workspace * Use default logging * Remove dependency on grafana/grafana * Fix imports
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/grafana/grafana/pkg/infra/log"
|
||||
"github.com/grafana/grafana-app-sdk/logging"
|
||||
"github.com/grafana/grafana/pkg/storage/unified/resource"
|
||||
"github.com/grafana/grafana/pkg/storage/unified/sql/db"
|
||||
"github.com/grafana/grafana/pkg/storage/unified/sql/dbutil"
|
||||
@@ -61,14 +61,14 @@ func newNotifier(b *backend) (eventNotifier, error) {
|
||||
}
|
||||
|
||||
type channelNotifier struct {
|
||||
log log.Logger
|
||||
log logging.Logger
|
||||
bufferSize int
|
||||
|
||||
mu sync.RWMutex
|
||||
subscribers map[chan *resource.WrittenEvent]bool
|
||||
}
|
||||
|
||||
func newChannelNotifier(bufferSize int, log log.Logger) *channelNotifier {
|
||||
func newChannelNotifier(bufferSize int, log logging.Logger) *channelNotifier {
|
||||
return &channelNotifier{
|
||||
subscribers: make(map[chan *resource.WrittenEvent]bool),
|
||||
log: log,
|
||||
|
||||
Reference in New Issue
Block a user