Skip to content

Commit

Permalink
迁移es8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
snys98 committed Mar 25, 2022
1 parent c7991d6 commit 0229a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Zero.Logging.Elasticsearch/EsLoggerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ protected override async Task WriteMessagesAsync(IEnumerable<LogMessage> message
var pipelineName = _esHelper.Options.PipelineNameDecider?.Invoke(e) ?? _esHelper.Options.PipelineName;
if (string.IsNullOrWhiteSpace(pipelineName))
{
action = new { index = new { _index = indexName, _type = _esHelper.Options.TypeName } };
action = new { index = new { _index = indexName } };
}
else
{
action = new { index = new { _index = indexName, _type = _esHelper.Options.TypeName, pipeline = pipelineName } };
action = new { index = new { _index = indexName, pipeline = pipelineName } };
}
var actionJson = _esHelper.Serialize(action);
payload.Add(actionJson);
Expand Down

0 comments on commit 0229a46

Please sign in to comment.