ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.83k stars 899 forks source link

Reduced log output to avoid leaking info about HTLC forwards #2448

Open jonasnick opened 5 years ago

jonasnick commented 5 years ago

I would like to run a node that doesn’t spy on my neighbors’ payments. What information is currently logged about HTLC forwards (preimages? amount?) Can I turn that off?

whitslack commented 1 month ago

All attempted forwards are recorded in the database whether they succeed or not. You can configure the autoclean plugin to delete the records of forwards after a certain amount of time. See the section headed "Cleanup control options" in man 5 lightningd-config.

If you have debug logging enabled, then your log file will also contain information about forwards. You might be able to raise the log level selectively to exclude messages about forwards or consider raising the log level globally to unusual to eliminate most routine information from your logs.

Lastly, if you want to eliminate all log messages even from memory, you can apply my no-memlog patch to your CLN sources and recompile.