feat(instrumentation): work on settings model for internal metrics publishing, #4696

This commit is contained in:
Torkel Ödegaard
2016-06-02 14:32:17 +02:00
parent 74101eaf7c
commit 6b2a4fe8e8
10 changed files with 163 additions and 70 deletions
+1 -4
View File
@@ -64,15 +64,12 @@ func main() {
social.NewOAuthService()
eventpublisher.Init()
plugins.Init()
metrics.Init()
if err := notifications.Init(); err != nil {
log.Fatal(3, "Notification service failed to initialize", err)
}
if setting.ReportingEnabled {
go metrics.StartUsageReportLoop()
}
StartServer()
exitChan <- 0
}