code: @VisibleForTesting
    public static UfsJournalFile getCurrentLog(UfsJournal journal) throws IOException {
      List<UfsJournalFile> logs = new ArrayList<>();
      UfsStatus[] statuses = journal.getUfs().listStatus(journal.getLogDir().toString());
      if (statuses != null) {
        for (UfsStatus status : statuses) {
          UfsJournalFile file = UfsJournalFile.decodeLogFile(journal, status.getName());
          if (file != null) {
            logs.add(file);
          }
        }
        if (!logs.isEmpty()) {
          UfsJournalFile file = Collections.max(logs);
          if (file.isIncompleteLog()) {
            return file;
          }
        }
      }
      return null;
    }
docs: Gets the current log (the incomplete log) that is being written to.
  
  @param journal the journal
  @return the current log