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

lightnind: print the version of cln early #6769

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lightningd/lightningd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,7 @@ int main(int argc, char *argv[])
* variables. */
ld = new_lightningd(NULL);
ld->state = LD_STATE_INITIALIZING;
log_info(ld->log, "%s", version());

/*~ We store an copy of our arguments before parsing mangles them, so
* we can re-exec if versions of subdaemons change. Note the use of
Expand Down
2 changes: 1 addition & 1 deletion tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ def test_notimestamp_logging(node_factory):
# Make sure this is specified *before* other options!
l1.daemon.early_opts.insert(0, '--log-timestamps=false')
l1.start()
assert l1.daemon.logs[0].startswith("lightningd-1 DEBUG")
assert l1.daemon.logs[0].startswith("lightningd-1 INFO")

assert l1.rpc.listconfigs()['configs']['log-timestamps']['value_bool'] is False

Expand Down
Loading