Merge pull request #1612 from andyxning/fix_statsd_error_log

Fix statsd error log
This commit is contained in:
Tim St. Clair 2017-03-14 12:35:28 -07:00 committed by GitHub
commit 5d3f487a1a

View File

@ -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)
_, err := fmt.Fprintf(self.conn, formatted)
if err != nil {
glog.V(3).Infof("failed to send data %q: %v", formatted, err)
return err
return fmt.Errorf("failed to send data %q: %v", formatted, err)
}
return nil
}