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

buffered logs & log level #85

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pythcoiner
Copy link
Contributor

This PR add one new field to ElectrsD:

  • logs: an mpsc::Receiver<String> into wich the electrs logs are redirected if Conf.buffered_logs is set to true.

and add 2 new fields to the Conf struct:

  • log_level: specify the log level to be passed to electrs (log::Level::Info as default)
  • buffered_logs: option to enable redirecting electrs stdout/stderr to ElectrsD.logs.

Note: the log crate is also reexported in order the consumer can use log::Level enum

@pythcoiner
Copy link
Contributor Author

Note: args for passing the log level seems to be different ont mempool implementation (maybe also esplora?), i need figure it out

@pythcoiner pythcoiner force-pushed the buffered_logs branch 4 times, most recently from a487df3 to f46018b Compare September 25, 2024 05:50
@pythcoiner pythcoiner marked this pull request as draft September 25, 2024 05:53
@pythcoiner pythcoiner force-pushed the buffered_logs branch 6 times, most recently from 3a35cb5 to d0e740d Compare September 25, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant