mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
Rename log_default_print to log_to_stdout
This commit is contained in:
committed by
Rusty Russell
parent
2c03be11b6
commit
d09fc71456
@@ -68,7 +68,7 @@ static void log_to_file(const char *prefix,
|
|||||||
fflush(logf);
|
fflush(logf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void log_default_print(const char *prefix,
|
static void log_to_stdout(const char *prefix,
|
||||||
enum log_level level,
|
enum log_level level,
|
||||||
bool continued,
|
bool continued,
|
||||||
const struct timeabs *time,
|
const struct timeabs *time,
|
||||||
@@ -122,7 +122,7 @@ struct log_book *new_log_book(const tal_t *ctx,
|
|||||||
assert(max_mem > sizeof(struct log) * 2);
|
assert(max_mem > sizeof(struct log) * 2);
|
||||||
lr->mem_used = 0;
|
lr->mem_used = 0;
|
||||||
lr->max_mem = max_mem;
|
lr->max_mem = max_mem;
|
||||||
lr->print = log_default_print;
|
lr->print = log_to_stdout;
|
||||||
lr->print_level = printlevel;
|
lr->print_level = printlevel;
|
||||||
lr->init_time = time_now();
|
lr->init_time = time_now();
|
||||||
list_head_init(&lr->log);
|
list_head_init(&lr->log);
|
||||||
@@ -467,7 +467,7 @@ static void log_crash(int sig)
|
|||||||
crashlog);
|
crashlog);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (crashlog->lr->print == log_default_print) {
|
if (crashlog->lr->print == log_to_stdout) {
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
/* We expect to be in config dir. */
|
/* We expect to be in config dir. */
|
||||||
|
|||||||
Reference in New Issue
Block a user