-
Notifications
You must be signed in to change notification settings - Fork 32
Subscriber: Debug #45
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
Comments
I don't exactly recall, but if I'm pretty sure that Is this giving you any issues? |
Not directly, but it does make it harder to pair this layer with others that might not implement debug. I think the debug requirement for Layer should be moved to the debug imply itself |
yeah, i'm not opposed to that change. i don't think that moving the debug implementation is a breaking change to a separate impl block, but i'll confirm. |
Resolves tokio-rs/tracing#2112; #45. This PR does two things: - removes unnecessary `fmt::Debug` bounds on `HierarchicalLayer`, which makes it possible to compose `HierarchicalLayer` with other `HierarchicalLayer`s (#45). - Checks whether another `HierarchicalLayer` has already placed `Data` in the extensions; skipping if it's already present. This prevents the panic reported in tokio-rs/tracing#2112.
Resolved by #46. |
Is there any reason why the
HeirarchicalLayer
needs theS: fmt::Debug
bound? The code doesn't seem to use it anywhereThe text was updated successfully, but these errors were encountered: