Skip to content
Snippets Groups Projects
Commit 6980206a authored by ale's avatar ale
Browse files

disable timestamp logging on daemons

parent e208d698
Branches
Tags
No related merge requests found
...@@ -30,6 +30,7 @@ func shortHostname() string { ...@@ -30,6 +30,7 @@ func shortHostname() string {
} }
func main() { func main() {
log.SetFlags(0)
flag.Parse() flag.Parse()
instrumentation.NewCounter("radiod.restarts").Incr() instrumentation.NewCounter("radiod.restarts").Incr()
......
...@@ -12,21 +12,20 @@ import ( ...@@ -12,21 +12,20 @@ import (
) )
var ( var (
domain = flag.String("domain", "", "DNS domain to serve") domain = flag.String("domain", "", "DNS domain to serve")
publicIps = util.IPList("ip", "Public IP for this machine (may be specified more than once)") publicIps = util.IPList("ip", "Public IP for this machine (may be specified more than once)")
dnsPort = flag.Int("dns-port", 53, "DNS port") dnsPort = flag.Int("dns-port", 53, "DNS port")
httpPort = flag.Int("http-port", 80, "HTTP port") httpPort = flag.Int("http-port", 80, "HTTP port")
staticDir = flag.String("static-dir", "/usr/share/autoradio/htdocs/static", "Static content directory") 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") 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). // Default DNS TTL (seconds).
dnsTtl = 5 dnsTtl = 5
) )
func main() { func main() {
log.SetFlags(0)
flag.Parse() flag.Parse()
if *domain == "" { if *domain == "" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment