Example #1
0
func (m *RoamClient) Send(key string, data []byte) (err error) {
	if len(data) == 0 || string(data) == "[]" {
		return
	}
	sts, err := transToRoamStruct(data)
	if err != nil {
		log.Warnf("store profile log err : %v", err)
		return err
	}
	for i := range sts {
		log.Profile("%s", sts[i])
	}
	return
}
Example #2
0
func storeStatistic() {
	for _, v := range statisticMap {
		log.Profile("%s", v.getStatistic())
		v.clear()
	}
}