ekmsystems / serilog-enrichers-correlation-id

Enrich logs with a unique ID so you can track logs for specific requests.
MIT License
93 stars 38 forks source link

Add check for headers already having been written #51

Closed edwardmcleodjones closed 4 years ago

edwardmcleodjones commented 4 years ago

Was getting exceptions under .Net Core, and traced it down to there not being a matching check for the headers having already been sent to match the one for the NETFULL region.

Faustvii commented 4 years ago

@ejcoyle88 Any change of getting this merged, this is causing the CorrelationId property to sometimes not get logged, because an exception is thrown trying to add it to the response header.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.