Warn 打印警告信息
(tag string, description string)
| 65 | |
| 66 | // Warn 打印警告信息 |
| 67 | func Warn(tag string, description string) { |
| 68 | logs.Println("[" + tag + "]" + description) |
| 69 | |
| 70 | select { |
| 71 | case logChan <- &pb.NodeLog{ |
| 72 | Role: teaconst.Role, |
| 73 | Tag: tag, |
| 74 | Description: description, |
| 75 | Level: "warning", |
| 76 | NodeId: teaconst.NodeId, |
| 77 | CreatedAt: time.Now().Unix(), |
| 78 | }: |
| 79 | default: |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // WarnServer 打印服务相关警告 |
| 84 | func WarnServer(tag string, description string) { |
no test coverage detected