event icon indicating copy to clipboard operation
event copied to clipboard

Add a [ERR] filter for LND logs

Open Darth-Coin opened this issue 1 year ago • 4 comments

Describe your enhancement idea

When the user is trying to debug a Zeus issue, usually will go to LND logs to see what is going on.

  • some users will get lost in the long list of [INF] events and could miss the [ERR] ones or not even understanding all.
  • when the user wants to copy the logs to share them with devs, usually is copying only a truncated part of them, not from the beginning. If we can filter only the ones [ERR] will be a shorter content and only the ones that could be related to the issue.

Darth-Coin avatar May 01 '24 07:05 Darth-Coin

Proof of concept started in https://github.com/ZeusLN/zeus/pull/2165

kaloudis avatar May 01 '24 22:05 kaloudis

I was testing this proof of concept version and I would like to make some mentions to be noted:

  • when you set the DEBUG level and restart, is using a lot of memory and app could freeze
  • only the INFO level was more or less "manageable", all the rest were crashing the app
  • with this version, using any log level, when you try to scan an invoice the app is crashing instantly

I suggest also to add the option to change the log level in the startup screen -> node setup. So user do not have to restart all the time in order to switch the log level. Or if is possible to not be necessary to restart the node, just to see a specific level of logs.

Darth-Coin avatar May 02 '24 10:05 Darth-Coin

https://lightning.engineering/api-docs/api/lnd/lightning/debug-level

kaloudis avatar May 02 '24 15:05 kaloudis

Maybe filtering could be usable also in case of https://github.com/ZeusLN/zeus/issues/2055 Which requirement(s) is now filled in LND 0.18.0-beta.

tlindi avatar May 31 '24 09:05 tlindi