Skip to content

infra: enable tracing-level logging#1815

Merged
charlespierce merged 1 commit intomainfrom
enable-tracing
Jul 30, 2024
Merged

infra: enable tracing-level logging#1815
charlespierce merged 1 commit intomainfrom
enable-tracing

Conversation

@chriskrycho
Copy link
Copy Markdown
Contributor

@chriskrycho chriskrycho commented Jul 30, 2024

The previous work on this in #1793 made it possible to use more log levels; this actually uses that new possibility. There is only a single tracing message at present, used to indicate that tracing itself is turned on, but we can use it for any future debugging work. Extracted from #1784, where we used it to help diagnose the issues underlying #1744.

@chriskrycho chriskrycho changed the title [wip] actually enable tracing log level infra: enable tracing log level Jul 30, 2024
The previous work on this made it *possible*, this actually *uses* that
new possibility. There is only a single tracing message at present, used
to indicate that tracing itself is turned on, but we can use it for any
future debugging work.
headers = "0.4"
thiserror = "1.0.16"
attohttpc = { version = "0.28", default-features = false, features = ["json", "compress", "tls-rustls-native-roots"] }
log = { version = "0.4", features = ["std"] } No newline at end of file
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I included this here originally as part of the debugging work in #1784, but it seems reasonable to just have it here regardless. It would also be good to update these kinds of dependencies to be log.workspace = true instead of specifying their own dependencies, but that’s for a different change!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems reasonable! I agree it's worth updating our use of Cargo workspaces—I think this repo pre-dates a lot of the improvements in that space that Cargo has shipped—but also agree it's for a separate PR and not a blocker for anything.

@chriskrycho chriskrycho changed the title infra: enable tracing log level infra: enable tracing-level logging Jul 30, 2024
Copy link
Copy Markdown
Contributor

@charlespierce charlespierce left a comment

Choose a reason for hiding this comment

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

LGTM!

headers = "0.4"
thiserror = "1.0.16"
attohttpc = { version = "0.28", default-features = false, features = ["json", "compress", "tls-rustls-native-roots"] }
log = { version = "0.4", features = ["std"] } No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems reasonable! I agree it's worth updating our use of Cargo workspaces—I think this repo pre-dates a lot of the improvements in that space that Cargo has shipped—but also agree it's for a separate PR and not a blocker for anything.

@charlespierce charlespierce merged commit fcf9ee9 into main Jul 30, 2024
@charlespierce charlespierce deleted the enable-tracing branch July 30, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants