Merge pull request #36 from Clever/add-err-msg
Added error message for failed log written to file
This commit is contained in:
commit
a975ca3c3b
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ func (b *batcherManager) sendBatch(batcher *batcher, tag string) {
|
|||
case PartialSendBatchError:
|
||||
lg.ErrorD("send-batch", kv.M{"msg": e.Error()})
|
||||
for _, line := range e.FailedMessages {
|
||||
b.failedLogsFile.ErrorD("failed-log", kv.M{"log": line})
|
||||
b.failedLogsFile.ErrorD("failed-log", kv.M{"log": line, "msg": e.Error()})
|
||||
}
|
||||
stats.Counter("batch-log-failures", len(e.FailedMessages))
|
||||
case CatastrophicSendBatchError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue