delete log

This commit is contained in:
jiangyong 2024-02-03 22:20:38 +08:00
parent 23935fcb8b
commit ee53e62bb7
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,9 @@ func Count(name string, value int64, tag map[string]string) {
} }
func Duration(name string, costMs int64, tag map[string]string) { func Duration(name string, costMs int64, tag map[string]string) {
if serv == nil {
return
}
serv.add(&metric{ serv.add(&metric{
Type: TypeDuration, Type: TypeDuration,
Metric: name, Metric: name,

View File

@ -130,8 +130,7 @@ func (s *service) report() {
bp.Database = s.config.Database bp.Database = s.config.Database
bp.Tags = s.defaultTags() bp.Tags = s.defaultTags()
_, err := s.client.Write(bp) s.client.Write(bp)
fmt.Println(err)
s.megers = nil s.megers = nil
} }