daemon: dump logs on crash.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-01-22 06:41:47 +10:30
parent 117cf6b02d
commit 89f1f1548e
3 changed files with 112 additions and 59 deletions

View File

@@ -93,4 +93,6 @@ void log_each_line_(const struct log_record *lr,
void log_dump_to_file(int fd, const struct log_record *lr);
void opt_register_logging(struct log *log);
void crashlog_activate(struct log *log);
#endif /* LIGHTNING_DAEMON_LOG_H */