Closed samcook closed 5 years ago
Thanks for merging this in. Are there plans to release a new package soon?
Yeah I've published a new version, the build server seems to have picked 7.0.10 instead of 7.0.1 though...
I've deployed a new version as 7.1.0
Hi,
We've come across an issue with the ElasticSearch target where, if we attempt to log an entry with an exception attached, and that exception has a property that can't be fetched due to throwing an exception, that causes the log message (or in fact an entire batch of log messages, if buffering is involved) to be lost.
This PR contains a change that means that properties causing errors while serializing are skipped instead of throwing an exception, and instead a warning is logged to the NLog internal log. It also avoids doing exception serialization at all if there is a custom field configured for exceptions.