delete log
This commit is contained in:
parent
23935fcb8b
commit
ee53e62bb7
|
@ -20,6 +20,9 @@ func Count(name string, value int64, tag map[string]string) {
|
|||
}
|
||||
|
||||
func Duration(name string, costMs int64, tag map[string]string) {
|
||||
if serv == nil {
|
||||
return
|
||||
}
|
||||
serv.add(&metric{
|
||||
Type: TypeDuration,
|
||||
Metric: name,
|
||||
|
|
|
@ -130,8 +130,7 @@ func (s *service) report() {
|
|||
bp.Database = s.config.Database
|
||||
bp.Tags = s.defaultTags()
|
||||
|
||||
_, err := s.client.Write(bp)
|
||||
fmt.Println(err)
|
||||
s.client.Write(bp)
|
||||
s.megers = nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue