Skip to content

Commit 99d6162

Browse files
authored
Suppress noisy "Claiming file ..." log messages unless --info is specified to Gradle (#7203)
This PR suppresses the "Claiming file ..." log messages unless `--info` is specified to the `gradlew` command line. These log messages are normally irrelevant and pollute the gradle output, potentially obscuring warnings and errors. e.g. ``` Claiming file firebase-dataconnect/connectors/src/androidTest/kotlin/com/google/firebase/dataconnect/connectors/demo/EnumIntegrationTest.kt for project project ':firebase-dataconnect:connectors' Claiming file firebase-dataconnect/testutil/src/test/kotlin/com/google/firebase/dataconnect/testutil/ListContainingNullUnitTest.kt for project project ':firebase-dataconnect:testutil' Claiming file firebase-dataconnect/testutil/src/main/kotlin/com/google/firebase/dataconnect/testutil/property/arbitrary/ListContainingNull.kt for project project ':firebase-dataconnect:testutil' Claiming file firebase-dataconnect/testutil/src/main/kotlin/com/google/firebase/dataconnect/testutil/property/arbitrary/misc.kt for project project ':firebase-dataconnect:testutil' Claiming file firebase-dataconnect/src/androidTest/kotlin/com/google/firebase/dataconnect/EnumIntegrationTest.kt for project project ':firebase-dataconnect' ```
1 parent 316e168 commit 99d6162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/src/main/java/com/google/firebase/gradle/plugins/ci/AffectedProjectFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private static Set<Project> changedSubProjects(Project project, Set<String> chan
107107
while (itr.hasNext()) {
108108
String file = itr.next();
109109
if (file.startsWith(relativePath)) {
110-
System.out.println("Claiming file " + file + " for project " + project);
110+
project.getLogger().info("Claiming file {} for {}", file, project);
111111
itr.remove();
112112
projects.add(project);
113113
}

0 commit comments

Comments
 (0)