MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_log_file

Function find_log_file

lightningd/log.c:815–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815static struct log_file *find_log_file(struct log_book *log_book,
816 const char *fname)
817{
818 assert(tal_count(log_book->log_files)
819 == tal_count(log_book->ld->logfiles));
820 for (size_t i = 0; i < tal_count(log_book->log_files); i++) {
821 if (streq(log_book->ld->logfiles[i], fname))
822 return log_book->log_files[i];
823 }
824 return NULL;
825}
826
827char *opt_log_level(const char *arg, struct log_book *log_book)
828{

Callers 1

opt_log_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected