summaryrefslogtreecommitdiff
path: root/system/api
diff options
context:
space:
mode:
Diffstat (limited to 'system/api')
-rw-r--r--system/api/analytics/init.go (renamed from system/api/analytics/analytics.go)6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/api/analytics/analytics.go b/system/api/analytics/init.go
index c30ce26..c04a7f2 100644
--- a/system/api/analytics/analytics.go
+++ b/system/api/analytics/init.go
@@ -4,6 +4,7 @@
package analytics
import (
+ "fmt"
"log"
"net/http"
"strings"
@@ -59,6 +60,8 @@ func Init() {
log.Fatalln(err)
}
+ fmt.Println("analytics", store)
+
recordChan = make(chan apiRequest, 1024*128)
go serve()
@@ -67,6 +70,9 @@ func Init() {
return nil
})
+ if err != nil {
+ log.Fatalln(err)
+ }
}
func serve() {