Commit d3d896dc by Jason Wilder

Log more descriptive error when anonymous org is not found

Was logging:

  [middleware.go:78 func·004()] [E] Anonymous access organization error%!(EXTRA <nil>)
parent e78b3586
......@@ -75,7 +75,7 @@ func GetContextHandler() macaron.Handler {
} else if setting.AnonymousEnabled {
orgQuery := m.GetOrgByNameQuery{Name: setting.AnonymousOrgName}
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 {
ctx.IsSignedIn = false
ctx.AllowAnonymous = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment