diff --git a/dbs/datasets.go b/dbs/datasets.go index 5dd2ec77..b2cf5f93 100644 --- a/dbs/datasets.go +++ b/dbs/datasets.go @@ -22,7 +22,7 @@ func (API) Datasets(params Record, w http.ResponseWriter) (int64, error) { // parse detail arugment detail, _ := getSingleValue(params, "detail") - if strings.ToLower(detail) != "true" { + if strings.ToLower(detail) == "true" { tmpl["Detail"] = true } diff --git a/web/handlers.go b/web/handlers.go index d889e7e0..b2a06b6e 100644 --- a/web/handlers.go +++ b/web/handlers.go @@ -27,7 +27,7 @@ func authMiddleware(next http.Handler) http.Handler { w.WriteHeader(http.StatusForbidden) return } - if config.Config.Verbose > 0 { + if config.Config.Verbose > 1 { log.Printf("Auth layer status: %v headers: %+v\n", status, r.Header) } // Call the next handler