Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging same InnerException throws an error #60

Closed
catalingavan opened this issue May 2, 2022 · 0 comments
Closed

Logging same InnerException throws an error #60

catalingavan opened this issue May 2, 2022 · 0 comments
Labels
bug Something isn't working SDK

Comments

@catalingavan
Copy link
Owner

Logging two exceptions which have the same inner exception is throwing an error.

var logger = new Logger();

var innerEx = new Exception($"Inner exception: {Guid.NewGuid()}");
logger.Error(new Exception("Exception 1", innerEx));
logger.Error(new Exception("Exception 2", innerEx));
System.ArgumentException:
Item has already been added. Key in dictionary: 'KissLog-ExceptionLogged-2f21ed7d-09e6-47e2-b0ad-3b1172e79581'
@catalingavan catalingavan added bug Something isn't working SDK labels May 2, 2022
catalingavan added a commit that referenced this issue May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SDK
Projects
None yet
Development

No branches or pull requests

1 participant