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

lightning log file size #194

Open
desperadoes-file opened this issue Apr 8, 2024 · 1 comment
Open

lightning log file size #194

desperadoes-file opened this issue Apr 8, 2024 · 1 comment

Comments

@desperadoes-file
Copy link

Just wondering is it normal when running the clboss plugin for the lightning.logs file to grow to a massive size with tens of thousands of:

lightningd: Calling rpc_command hook of plugin clboss
plugin-clboss: Rpc in: listchannels {"source": "XXX"} => {"channels":[{"source":"XXX>
plugin-clboss: Rpc out: listchannels {"source": "XXX"}
lightningd: Plugin clboss returned from rpc_command hook call

Also of note, previously I had clboss running and it was unable to create channels with peers, but since upgrading to 0.13.1rc1 today, my node now has 1 channel pending.
Thanks.

@ksedgwic
Copy link
Collaborator

ksedgwic commented Apr 8, 2024

@desperadoes-file yes, this is a known problem. CLBOSS would definitely benefit from a round of log "tuning" where we reclassify existing logging between ERROR, WARN, INFO, DEBUG, and TRACE to decrease the "noise". The example you gave is one that bothers me all the time as well.

My opinion:
INFO - good "standard" logging level, log growth should not be huge
DEBUG - needed for debugging and development - might be left on for a month so logs need to be moderately big
TRACE - high level of debugging, everything can be logged, maybe can only run this way for a day or two due to space

It's tempting to mark this as a "good first issue" because it is so easy to fix, but maybe it requires insight into debugging CLBOSS to do well.

Here are some CLBOSS log matching expressions where I would make log sooner (ie at INFO instead of DEBUG):

        regex+="plugin-clboss: New block at|"
	regex+="plugin-clboss: NodeBalanceSwapper|"
	regex+="plugin-clboss: SwapManager:|"
	regex+="plugin-clboss: Boltz::Service|"
	regex+="plugin-clboss: OnchainFundsAnnouncer|"
	regex+="plugin-clboss: ChannelCreationDecider|"
	regex+="plugin-clboss: ChannelCreator|"
	regex+="plugin-clboss: Rpc out: sendrawtransaction|"
	regex+="plugin-clboss: ChannelCandidateInvestigator|"

Here are some CLBOSS log matching expressions for logging which should be at TRACE instead of DEBUG:

    vregex+='no more swaps need addresses|' # clboss
    vregex+='/swapstatus.*invoice\.expired|' # clboss
    vregex+='/swapstatus.*swap\.created|' # clboss
    vregex+='plugin-clboss.*ChannelCandidateInvestigator.*Investigating|'
    vregex+='plugin-clboss.*ChannelCandidateInvestigator.*is online|'
    vregex+='plugin-clboss.*ChannelCandidateInvestigator.*Janitor: Rejected|'
    vregex+='plugin-clboss.*Boltz::Service.*Swaps:|'

Others may have a different viewpoint, of course ...

ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
For improving the S/N on current debug level logging which is too
noisy.

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are too prolific at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
For improving the S/N on current debug level logging which is too
noisy.

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are too prolific at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
Move super-noisy debugging logging to new TRACE level to improve
S/N ratio at DEBUG.

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are too prolific at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 26, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
ksedgwic added a commit to lightning-signer/c-lightning that referenced this issue Apr 27, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
rustyrussell pushed a commit to ElementsProject/lightning that referenced this issue May 9, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([#7279])

Related Issues:
#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
rustyrussell pushed a commit to ElementsProject/lightning that referenced this issue May 9, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
rustyrussell pushed a commit to rustyrussell/lightning that referenced this issue May 14, 2024
By moving super-noisy debugging logging to new TRACE level we can
make long-term logging at DEBUG possible w/o removing any logging.

Addresses ([ElementsProject#7279])

Related Issues:
ElementsProject#6927
chrisguida/smaug#34
ZmnSCPxj/clboss#194
rustyrussell pushed a commit to rustyrussell/lightning that referenced this issue May 14, 2024
These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in ZmnSCPxj/clboss#194
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

No branches or pull requests

2 participants