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

disable timestamp logging on daemons

parent e208d698
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ func shortHostname() string {
}
func main() {
log.SetFlags(0)
flag.Parse()
instrumentation.NewCounter("radiod.restarts").Incr()
......
......@@ -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 == "" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment