From 6980206a8a61a5d14885eaa2d0387fe6e13b498d Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 28 Dec 2014 11:36:50 +0000
Subject: [PATCH] disable timestamp logging on daemons

---
 cmd/radiod/radiod.go           |  1 +
 cmd/redirectord/redirectord.go | 13 ++++++-------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cmd/radiod/radiod.go b/cmd/radiod/radiod.go
index 25cec385..5a701b94 100644
--- a/cmd/radiod/radiod.go
+++ b/cmd/radiod/radiod.go
@@ -30,6 +30,7 @@ func shortHostname() string {
 }
 
 func main() {
+	log.SetFlags(0)
 	flag.Parse()
 
 	instrumentation.NewCounter("radiod.restarts").Incr()
diff --git a/cmd/redirectord/redirectord.go b/cmd/redirectord/redirectord.go
index 548c4166..6e4e09b2 100644
--- a/cmd/redirectord/redirectord.go
+++ b/cmd/redirectord/redirectord.go
@@ -12,21 +12,20 @@ import (
 )
 
 var (
-	domain    = flag.String("domain", "", "DNS domain to serve")
-	publicIps = util.IPList("ip", "Public IP for this machine (may be specified more than once)")
-	dnsPort   = flag.Int("dns-port", 53, "DNS port")
-	httpPort  = flag.Int("http-port", 80, "HTTP port")
-
+	domain      = flag.String("domain", "", "DNS domain to serve")
+	publicIps   = util.IPList("ip", "Public IP for this machine (may be specified more than once)")
+	dnsPort     = flag.Int("dns-port", 53, "DNS port")
+	httpPort    = flag.Int("http-port", 80, "HTTP port")
 	staticDir   = flag.String("static-dir", "/usr/share/autoradio/htdocs/static", "Static content directory")
 	templateDir = flag.String("template-dir", "/usr/share/autoradio/htdocs/templates", "HTML templates directory")
-
-	lbPolicy = flag.String("lb-policy", "weighted", "Load balancing policy (weighted, leastloaded)")
+	lbPolicy    = flag.String("lb-policy", "weighted", "Load balancing policy (weighted, leastloaded)")
 
 	// Default DNS TTL (seconds).
 	dnsTtl = 5
 )
 
 func main() {
+	log.SetFlags(0)
 	flag.Parse()
 
 	if *domain == "" {
-- 
GitLab