Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Override empty stack traces for traced events #158

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

natebosch
Copy link
Member

We already default to the current stack trace of the logging caller when
there is no stack trace available so the author has some signal for
where to look in the code.

Also default for non-null but empty stack traces. This is more useful
where an empty trace was passed through some signature to satisfy
nullability requirements and forwarded to the log.

We already default to the current stack trace of the logging caller when
there is no stack trace available so the author has some signal for
where to look in the code.

Also default for non-null but empty stack traces. This is more useful
where an empty trace was passed through some signature to satisfy
nullability requirements and forwarded to the log.
@natebosch natebosch requested a review from jakemac53 March 6, 2024 21:42
@natebosch natebosch merged commit 7a7bd5e into master Mar 7, 2024
6 checks passed
@natebosch natebosch deleted the default-empty-trace branch March 7, 2024 22:44
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 16, 2024
We already default to the current stack trace of the logging caller when
there is no stack trace available so the author has some signal for
where to look in the code.

Also default for non-null but empty stack traces. This is more useful
where an empty trace was passed through some signature to satisfy
nullability requirements and forwarded to the log.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants