mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Unified Storage: Add more debug logs to permission filtering (#99325)
add more debug logs
This commit is contained in:
parent
2fe510eb6f
commit
6f12b8e3a4
@ -889,6 +889,7 @@ func (q *permissionScopedQuery) Searcher(ctx context.Context, i index.IndexReade
|
|||||||
parts := strings.Split(id, "/")
|
parts := strings.Split(id, "/")
|
||||||
// Exclude doc if id isn't expected format
|
// Exclude doc if id isn't expected format
|
||||||
if len(parts) != 4 {
|
if len(parts) != 4 {
|
||||||
|
q.log.Debug("Unexpected document ID format", "id", id)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
ns := parts[0]
|
ns := parts[0]
|
||||||
@ -900,6 +901,10 @@ func (q *permissionScopedQuery) Searcher(ctx context.Context, i index.IndexReade
|
|||||||
folder = string(value)
|
folder = string(value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
q.log.Debug("Error reading doc values", "error", err)
|
||||||
|
return false
|
||||||
|
}
|
||||||
if _, ok := q.checkers[resource]; !ok {
|
if _, ok := q.checkers[resource]; !ok {
|
||||||
q.log.Debug("No resource checker found", "resource", resource)
|
q.log.Debug("No resource checker found", "resource", resource)
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user