diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-12-19 10:16:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 10:16:22 -0500 |
commit | f96173528f08684092b89f903f0389fe2b607192 (patch) | |
tree | f34f9057417ad6758cd65dc246bc764530f2134c /api/admin.go | |
parent | 6a5cdd5cdf09317ce259dd146fc4f1cb76d8b9b6 (diff) | |
download | chat-f96173528f08684092b89f903f0389fe2b607192.tar.gz chat-f96173528f08684092b89f903f0389fe2b607192.tar.bz2 chat-f96173528f08684092b89f903f0389fe2b607192.zip |
Adding metrics for caching mechanisms (#4828)
Diffstat (limited to 'api/admin.go')
-rw-r--r-- | api/admin.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/admin.go b/api/admin.go index 20e5075b2..3fb6c31f8 100644 --- a/api/admin.go +++ b/api/admin.go @@ -13,6 +13,8 @@ import ( "strings" "time" + "runtime/debug" + l4g "github.com/alecthomas/log4go" "github.com/gorilla/mux" "github.com/mattermost/platform/einterfaces" @@ -20,7 +22,6 @@ import ( "github.com/mattermost/platform/store" "github.com/mattermost/platform/utils" "github.com/mssola/user_agent" - "runtime/debug" ) func InitAdmin() { @@ -112,7 +113,7 @@ func getAllAudits(c *Context, w http.ResponseWriter, r *http.Request) { audits := result.Data.(model.Audits) etag := audits.Etag() - if HandleEtag(etag, w, r) { + if HandleEtag(etag, "Get All Audits", w, r) { return } |