diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/diagnostics.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go index 4974d6444..bba95d241 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -8,6 +8,7 @@ import ( "log" "os" "runtime" + "sync/atomic" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/utils" @@ -171,7 +172,10 @@ func (a *App) trackActivity() { "public_channels_deleted": deletedPublicChannelCount, "private_channels_deleted": deletedPrivateChannelCount, "posts": postsCount, + "used_apiv3": atomic.LoadInt32(model.UsedApiV3) == 1, }) + + atomic.StoreInt32(model.UsedApiV3, 0) } func (a *App) trackConfig() { |