-
Notifications
You must be signed in to change notification settings - Fork 908
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
lightnind: print the version of cln early #6769
lightnind: print the version of cln early #6769
Conversation
88d3589
to
58959b4
Compare
Looks like some tests need to be updated to accommodate the new line at the start of logs. |
58959b4
to
7d9e1b5
Compare
@morehouse thanks there was a test for logging that was messing things up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to squash.
Also nit on the commit name: s/lightnind/lightningd
As a node matures and is no longer new, it can take some time to determine which version of `cln` it's running. To address this, we now display the version earlier. This ensures that even in the event of a crash, we're aware of the running version. (cln-meta-project-py3.11) ➜ lightning git:(macros/log-version) ✗ ./lightningd/lightningd 2023-10-12T19:21:00.899Z INFO lightningd: v23.08.1-209-gae94be4-modded 2023-10-12T19:21:00.994Z INFO lightningd: Creating configuration directory /home/vincent/.lightning/bitcoin 2023-10-12T19:21:01.235Z INFO lightningd: Creating database 2023-10-12T19:21:01.279Z UNUSUAL hsmd: HSM: created new hsm_secret file Could not connect to bitcoind using bitcoin-cli. Is bitcoind running? Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind. You can verify that your Bitcoin Core installation is ready for use by running: $ bitcoin-cli echo 'hello world' 2023-10-12T19:21:01.349Z **BROKEN** plugin-bcli: \nCould not connect to bitcoind using bitcoin-cli. Is bitcoind running?\n\nMake sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.\n\nYou can verify that your Bitcoin Core installation is ready for use by running:\n\n $ bitcoin-cli echo 'hello world'\n 2023-10-12T19:21:01.349Z INFO plugin-bcli: Killing plugin: exited before we sent init The Bitcoin backend died. Link: ElementsProject#6374 Signed-off-by: Vincenzo Palazzo <[email protected]>
b7a7088
to
a96273a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK a96273a
9b69c56
into
ElementsProject:master
As a node matures and is no longer new, it can take some time
to determine which version of
cln
it's running.To address this, we now display the version earlier. This ensures
that even in the event of a crash, we're aware of the running version.
Fixes: #6374