mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
DENDRITE_TRACE_HTTP is better
This commit is contained in:
parent
a71b9d27bf
commit
c76d271c6f
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue