Skip to content

buffered logs & log level#85

Draft
pythcoiner wants to merge 2 commits intoRCasatta:masterfrom
pythcoiner:buffered_logs
Draft

buffered logs & log level#85
pythcoiner wants to merge 2 commits intoRCasatta:masterfrom
pythcoiner:buffered_logs

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