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

Function find_log_file

lightningd/log.c:828–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828static struct log_file *find_log_file(struct log_book *log_book,
829 const char *fname)
830{
831 assert(tal_count(log_book->log_files)
832 == tal_count(log_book->ld->logfiles));
833 for (size_t i = 0; i < tal_count(log_book->log_files); i++) {
834 if (streq(log_book->ld->logfiles[i], fname))
835 return log_book->log_files[i];
836 }
837 return NULL;
838}
839
840char *opt_log_level(const char *arg, struct log_book *log_book)
841{

Callers 1

opt_log_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected