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

Fix up unused level property #307

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Jan 5, 2024

In #302 we refactored a lot of how events are constructed. One existing piece of functionality that was lost was being able to specify a level to override any in the events with when ingesting. This PR restores that functionality.

@@ -35,7 +35,7 @@ public static LogEvent FromProperties(IDictionary<string, object?> properties, s
var messageTemplate = GetMessageTemplate(properties);
var traceId = GetTraceId(properties);
var spanId = GetSpanId(properties);
var props = GetLogEventProperties(properties, remainder, level);
var props = GetLogEventProperties(properties, remainder);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This level is no longer needed; it would tack the surrogate level property on, but we do this while reading now.

@KodrAus KodrAus merged commit e2629f3 into datalust:dev Jan 5, 2024
1 check passed
@KodrAus KodrAus deleted the fix/level-ingest branch January 5, 2024 02:22
@liammclennan liammclennan mentioned this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants