Merge pull request #1612 from andyxning/fix_statsd_error_log
Fix statsd error log
This commit is contained in:
commit
5d3f487a1a
@ -49,8 +49,7 @@ func (self *Client) Send(namespace, containerName, key string, value uint64) err
|
|||||||
formatted := fmt.Sprintf("%s.%s.%s:%d|g", namespace, containerName, key, value)
|
formatted := fmt.Sprintf("%s.%s.%s:%d|g", namespace, containerName, key, value)
|
||||||
_, err := fmt.Fprintf(self.conn, formatted)
|
_, err := fmt.Fprintf(self.conn, formatted)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(3).Infof("failed to send data %q: %v", formatted, err)
|
return fmt.Errorf("failed to send data %q: %v", formatted, err)
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user