Browse Source

lightningd: activate crashlog later.

We error out for all kinds of reasons early on (eg. bitcoind down),
and printing a backtrace for them is pretty confusing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
256bdc12ff
  1. 6
      lightningd/lightningd.c

6
lightningd/lightningd.c

@ -285,9 +285,6 @@ int main(int argc, char *argv[])
/* Handle options and config; move to .lightningd */
newdir = handle_opts(ld, argc, argv);
/* Activate crash log now we're in the right place. */
crashlog_activate(argv[0], ld->log);
/* Ignore SIGPIPE: we look at our write return values*/
signal(SIGPIPE, SIG_IGN);
@ -367,6 +364,9 @@ int main(int argc, char *argv[])
/* Now kick off topology update, now peers have watches. */
begin_topology(ld->topology);
/* Activate crash log now we're not reporting startup failures. */
crashlog_activate(argv[0], ld->log);
for (;;) {
struct timer *expired;
void *v = io_loop(&ld->timers, &expired);

Loading…
Cancel
Save