summaryrefslogtreecommitdiffstats
path: root/app/diagnostics.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r--app/diagnostics.go4
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() {