Skip to content

Commit 1b39589

Browse files
Fixes issue #28
* The documentation for -graphite says to use - to disable, this implements that functionality.
1 parent 1ef3e54 commit 1b39589

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

statsdaemon.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ func submit(deadline time.Time) error {
133133

134134
now := time.Now().Unix()
135135

136+
if *graphiteAddress == "-" {
137+
return nil
138+
}
139+
136140
client, err := net.Dial("tcp", *graphiteAddress)
137141
if err != nil {
138142
if *debug {

0 commit comments

Comments
 (0)