Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit cba2b37

Browse files
Anthony EmengoAndreas Voellmer
authored andcommitted
Change analyticsd logging
1 parent 4745f08 commit cba2b37

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

analyticsd/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"context"
55
"crypto/tls"
6-
"fmt"
6+
"log"
77
"net/http"
88
"os"
99
"os/signal"
@@ -49,10 +49,6 @@ func main() {
4949

5050
if len(os.Args) > 1 && os.Args[1] == "debug" {
5151
pollingInterval = 10*time.Second
52-
fmt.Printf("[DEBUG] analyticsKey: %q\n", analyticsKey)
53-
fmt.Printf("[DEBUG] userID: %q\n", userID)
54-
fmt.Printf("[DEBUG] pollingInterval: %v\n", pollingInterval)
55-
fmt.Printf("[DEBUG] version %q\n", version)
5652
}
5753

5854
analyticsDaemon := daemon.New(
@@ -72,5 +68,7 @@ func main() {
7268
analyticsDaemon.Stop()
7369
}()
7470

71+
log.Printf("[ANALYTICSD] apiKeyLoaded: %t, userID: %q, pollingInterval: %v, version: %q\n",
72+
analyticsKey != "", userID, pollingInterval, version)
7573
analyticsDaemon.Start()
7674
}

0 commit comments

Comments
 (0)