diff --git a/statsdaemon.go b/statsdaemon.go index 8f4282e..0734e39 100644 --- a/statsdaemon.go +++ b/statsdaemon.go @@ -137,6 +137,10 @@ func submit(deadline time.Time) error { now := time.Now().Unix() + if *graphiteAddress == "-" { + return nil + } + client, err := net.Dial("tcp", *graphiteAddress) if err != nil { if *debug {