write failed log message to file
This commit is contained in:
parent
945ed317c2
commit
7b18d1bab4
1 changed files with 7 additions and 1 deletions
|
|
@ -187,7 +187,13 @@ func (b *batcherManager) startMessageHandler(
|
||||||
batcher.AddMessage(tmp.msg, tmp.pair)
|
batcher.AddMessage(tmp.msg, tmp.pair)
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
lg.ErrorD("add-message", kv.M{
|
lg.ErrorD("add-message", kv.M{
|
||||||
"err": err.Error(), "msg": string(tmp.msg), "tag": tmp.tag,
|
"err": err.Error(),
|
||||||
|
"tag": tmp.tag,
|
||||||
|
})
|
||||||
|
b.failedLogsFile.ErrorD("add-message", kv.M{
|
||||||
|
"err": err.Error(),
|
||||||
|
"msg": string(tmp.msg),
|
||||||
|
"tag": tmp.tag,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
stats.Counter("msg-batched", 1)
|
stats.Counter("msg-batched", 1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue