DENDRITE_TRACE_HTTP is better

This commit is contained in:
Kegan Dougal 2020-04-15 11:12:30 +01:00
parent a71b9d27bf
commit c76d271c6f

View file

@ -47,7 +47,7 @@ func MakeExternalAPI(metricsName string, f func(*http.Request) util.JSONResponse
// TODO: We shouldn't be directly reading env vars here, inject it in instead. // TODO: We shouldn't be directly reading env vars here, inject it in instead.
// Refactor this when we split out config structs. // Refactor this when we split out config structs.
verbose := true verbose := true
if os.Getenv("DENDRITE_TRACE") == "1" { if os.Getenv("DENDRITE_TRACE_HTTP") == "1" {
verbose = true verbose = true
} }
h := util.MakeJSONAPI(util.NewJSONRequestHandler(f)) h := util.MakeJSONAPI(util.NewJSONRequestHandler(f))