Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace INFO with FINE logging in CoverageOutputGenerator #22257

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,19 @@ private static boolean isMetadataFile(String filename) {
private static List<File> getGcovInfoFiles(List<File> filesInCoverageDir) {
List<File> gcovFiles = getFilesWithExtension(filesInCoverageDir, GCOV_EXTENSION);
if (gcovFiles.isEmpty()) {
logger.log(Level.INFO, "No gcov info file found.");
logger.log(Level.FINE, "No gcov info file found.");
} else {
logger.log(Level.INFO, "Found " + gcovFiles.size() + " gcov info files.");
logger.log(Level.FINE, "Found " + gcovFiles.size() + " gcov info files.");
}
return gcovFiles;
}

private static List<File> getGcovJsonInfoFiles(List<File> filesInCoverageDir) {
List<File> gcovJsonFiles = getFilesWithExtension(filesInCoverageDir, GCOV_JSON_EXTENSION);
if (gcovJsonFiles.isEmpty()) {
logger.log(Level.INFO, "No gcov json file found.");
logger.log(Level.FINE, "No gcov json file found.");
} else {
logger.log(Level.INFO, "Found " + gcovJsonFiles.size() + " gcov json files.");
logger.log(Level.FINE, "Found " + gcovJsonFiles.size() + " gcov json files.");
}
return gcovJsonFiles;
}
Expand All @@ -241,7 +241,7 @@ private static List<File> getGcovJsonInfoFiles(List<File> filesInCoverageDir) {
private static File getProfdataFileOrNull(List<File> files) {
List<File> profdataFiles = getFilesWithExtension(files, PROFDATA_EXTENSION);
if (profdataFiles.isEmpty()) {
logger.log(Level.INFO, "No .profdata file found.");
logger.log(Level.FINE, "No .profdata file found.");
return null;
}
if (profdataFiles.size() > 1) {
Expand All @@ -252,7 +252,7 @@ private static File getProfdataFileOrNull(List<File> files) {
+ " .profadata files were found instead.");
return null;
}
logger.log(Level.INFO, "Found one .profdata file.");
logger.log(Level.FINE, "Found one .profdata file.");
return profdataFiles.get(0);
}

Expand All @@ -264,9 +264,9 @@ private static List<File> getTracefiles(LcovMergerFlags flags, List<File> filesI
lcovTracefiles = getFilesWithExtension(filesInCoverageDir, TRACEFILE_EXTENSION);
}
if (lcovTracefiles.isEmpty()) {
logger.log(Level.INFO, "No lcov file found.");
logger.log(Level.FINE, "No lcov file found.");
} else {
logger.log(Level.INFO, "Found " + lcovTracefiles.size() + " tracefiles.");
logger.log(Level.FINE, "Found " + lcovTracefiles.size() + " tracefiles.");
}
return lcovTracefiles;
}
Expand Down Expand Up @@ -310,7 +310,7 @@ static Coverage parseFilesSequentially(List<File> files, Parser parser) {
Coverage coverage = new Coverage();
for (File file : files) {
try {
logger.log(Level.INFO, "Parsing file " + file);
logger.log(Level.FINE, "Parsing file " + file);
List<SourceFileCoverage> sourceFilesCoverage = parser.parse(new FileInputStream(file));
for (SourceFileCoverage sourceFileCoverage : sourceFilesCoverage) {
coverage.add(sourceFileCoverage);
Expand Down
Loading