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

Gossipsub logging #5389

Closed
pawanjay176 opened this issue Mar 11, 2024 · 1 comment
Closed

Gossipsub logging #5389

pawanjay176 opened this issue Mar 11, 2024 · 1 comment

Comments

@pawanjay176
Copy link
Member

Description

In #4988 , we started writing libp2p logs into a file.

After we moved gossipsub behaviour into lighthouse in #5066, there doesn't seem to be any way to get the gossipsub logs as they aren't under the gossipsub dependency and they use tracing log as opposed to slog as rest of lighthouse.

We should have an option to enable these gossipsub logs somehow. A hacky way to I used to enable this was to use stdout as the tracing_subscriber writer instead of std::io::sink.

if let Err(e) = tracing_subscriber::fmt()
.with_env_filter(filter_layer)
.with_writer(std::io::sink)
.finish()
.with(MetricsLayer)
.with(custom_layer)
.try_init()

@ackintosh
Copy link
Member

This issue has been fixed in #5401. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants