mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Log more descriptive error when anonymous org is not found
Was logging: [middleware.go:78 func·004()] [E] Anonymous access organization error%!(EXTRA <nil>)
This commit is contained in:
parent
e78b358643
commit
d3d896dccd
@ -75,7 +75,7 @@ func GetContextHandler() macaron.Handler {
|
|||||||
} else if setting.AnonymousEnabled {
|
} else if setting.AnonymousEnabled {
|
||||||
orgQuery := m.GetOrgByNameQuery{Name: setting.AnonymousOrgName}
|
orgQuery := m.GetOrgByNameQuery{Name: setting.AnonymousOrgName}
|
||||||
if err := bus.Dispatch(&orgQuery); err != nil {
|
if err := bus.Dispatch(&orgQuery); err != nil {
|
||||||
log.Error(3, "Anonymous access organization error", nil)
|
log.Error(3, "Anonymous access organization error: '%s': %s", setting.AnonymousOrgName, err)
|
||||||
} else {
|
} else {
|
||||||
ctx.IsSignedIn = false
|
ctx.IsSignedIn = false
|
||||||
ctx.AllowAnonymous = true
|
ctx.AllowAnonymous = true
|
||||||
|
Loading…
Reference in New Issue
Block a user