| Conditions | 1 |
| Total Lines | 5 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package bot |
||
| 16 | func (ctx *Context) MetricsLog(module string) { |
||
| 17 | query := []byte(fmt.Sprintf("logs,server=%v module=\"%v\"", ctx.Guild.ID, module)) |
||
| 18 | addr := fmt.Sprintf("%v/write?db=%v", ctx.Conf.Metrics.Address, ctx.Conf.Metrics.Database) |
||
| 19 | r := bytes.NewReader(query) |
||
| 20 | _, _ = http.Post(addr, "", r) |
||
| 21 | } |
||
| 22 |