This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Serilog.Sinks.Elasticsearch don't call any error handlers when logs are rejected #357
Closed
1 of 2 tasks
Does this issue relate to a new feature or an existing bug?
What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.
8.2.0
Please describe the current behavior?
When an LogEvent is rejected from ElasticSearch none of the configure handlers are called
Please describe the expected behavior?
Configured handlers should be called
Analysis
After some digging it seems that:
https://github.com/serilog/serilog-sinks-elasticsearch/blob/1cf2748b7a85fdd95b2c863ed7d5c54a2252a78c/src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchSink.cs#L224-L233
don't detect my error because
settings
is already aDictionary<string, object>
I rebuild a new version of the sink with
and it worked.
The text was updated successfully, but these errors were encountered: