Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Change the logging levels on the fly #2376

Open
pepyakin opened this issue Feb 3, 2021 · 1 comment
Open

Change the logging levels on the fly #2376

pepyakin opened this issue Feb 3, 2021 · 1 comment

Comments

@pepyakin
Copy link
Contributor

pepyakin commented Feb 3, 2021

During debugging, it happened to me a couple of times that I wished I could change the logging levels without bringing down the whole node. In the case of polkadot-launch testing, that typically means bringing down the whole testnet.

It would be quite handy to have ability to change the logging levels on the fly. As a strawman idea, there could be a special flag that if enabled makes the node to expose an HTTP endpoint that listens on localhost for requests. Upon a POST request it will change the logging levels. The body format should be something simple so that it can be changed easily with curl.

@bkchr
Copy link
Member

bkchr commented Feb 3, 2021

paritytech/substrate#7474

There is still something missing to make this work properly, but it should work in theory :D

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

No branches or pull requests

2 participants