-
Notifications
You must be signed in to change notification settings - Fork 911
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lightningd: disallow --daemon without --log-file.
From #clightning: (11:24:10) andytoshi: hiya, i'm trying to set up a new lightningd node, and when i run lightningd --network=bitcoin --log-level=debug --daemon (11:24:17) andytoshi: i get errors of the form fetchinvoice: Malformed JSON reply '2021-01-25T00:51:16.655Z DEBUG plugin-offers: disabled itself at init: offers not enabled in config (11:24:43) andytoshi: there are a couple variants of this, but always some form of "something: failed to parse <a log line> as json" Indeed, we close stdout, and it ends up being reused for some plugin. But the real problem is that we log to stdout by default, which doesn't make sense. If they really want to discard logs, they can use --log-file=/dev/null. Signed-off-by: Rusty Russell <[email protected]> Changelog-Fixed: JSON failures when --daemon is used without --log-file.
- Loading branch information
1 parent
d1a59b6
commit 0efec23
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters