Skip to content

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Oct 23, 2024

The tracing_subscribe docs state that missing offsets likely mean that we're in a multithreaded context:
https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/time/struct.OffsetTime.html#method.local_rfc_3339

We're not in a multithreaded context at this point, but some platforms (e.g. OpenBSD) still don't have time offsets available.

Since this is only a rust-analyzer debugging convenience, just use system time logging in this situation.

Fixes #18384

The tracing_subscribe docs state that missing offsets likely mean
that we're in a multithreaded context:
https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/time/struct.OffsetTime.html#method.local_rfc_3339

We're not in a multithreaded context at this point, but some platforms
(e.g. OpenBSD) still don't have time offsets available.

Since this is only a rust-analyzer debugging convenience, just use
system time logging in this situation.

Fixes rust-lang#18384
@Wilfred Wilfred marked this pull request as ready for review October 23, 2024 17:01
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 23, 2024
@lnicola lnicola enabled auto-merge October 23, 2024 17:06
@lnicola lnicola added this pull request to the merge queue Oct 23, 2024
Merged via the queue into rust-lang:master with commit f8ef75a Oct 23, 2024
9 checks passed
@Wilfred Wilfred deleted the missing_offset branch October 23, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release 2024-10-21 crash on OpenBSD/amd64

4 participants