Improve logging by adding a scope and better handling of inner exceptions#281
Merged
alexeyzimarev merged 7 commits intoEventuous:devfrom Nov 16, 2023
Merged
Conversation
Test Results 32 files - 16 32 suites - 16 10m 56s ⏱️ +17s Results for commit d3bfed9. ± Comparison against base commit a66fb59. This pull request removes 6 and adds 4 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
src/Core/src/Eventuous.Persistence/EventStore/StoreFunctions.cs
Outdated
Show resolved
Hide resolved
bartelink
reviewed
Nov 16, 2023
| public AggregateNotFoundException(Type aggregateType, StreamName streamName, Exception inner) | ||
| : base($"Aggregate {aggregateType.Name} with not found in stream {streamName}. {inner.Message} {inner.InnerException?.Message}", inner) { } | ||
| public AggregateNotFoundException(Type aggregateType, StreamName streamName, Exception? inner) | ||
| : base($"Aggregate {aggregateType.Name} with not found in stream {streamName}", inner) { } |
Contributor
There was a problem hiding this comment.
this sentence does not make sense, maybe remove 'with', or make it something like 'No events for Aggregate {name} found in {streamName}' ?
Contributor
Author
There was a problem hiding this comment.
You're right - I didn't catch this while going through this. I might go through the error messages and make sure they are sensible and makes sense sometime during the weekend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a scope to all log messages which makes them easier to filter out by SubscriptionId when filtering in a logging system that supports it.
It also fixes some nullreferenced inner exceptions I encountered at times by making all inner exceptions nullable