private void GetRaftLogs(IList <DiagnosticsReportSource> sources) { if (_clusterStateDirectory == null) { sources.Add(DiagnosticsReportSources.newDiagnosticsString("raft.txt", () => "error creating ClusterStateDirectory: " + _clusterStateException.Message)); return; } File raftLogDirectory = new File(_clusterStateDirectory, RAFT_LOG_DIRECTORY_NAME); FileNames fileNames = new FileNames(raftLogDirectory); SortedDictionary <long, File> allFiles = fileNames.GetAllFiles(_fs, NullLog.Instance); foreach (File logFile in allFiles.Values) { sources.Add(DiagnosticsReportSources.newDiagnosticsFile("raft/" + logFile.Name, _fs, logFile)); } }