Reduce log level when transitive access widener fails to find target method in mappings.

See: https://github.com/FabricMC/fabric-loom/issues/644
This commit is contained in:
modmuss50
2022-05-10 19:37:00 +01:00
parent 8c227a2d8c
commit 138685d141

View File

@@ -67,7 +67,7 @@ public record TransitiveAccessWidenerMappingsProcessor(Project project) implemen
MappingTree.ClassMapping classMapping = mappingTree.getClass(name);
if (classMapping == null) {
logger.warn("Failed to find class ({}) to mark access widened by mod ({})", name, modId());
logger.info("Failed to find class ({}) to mark access widened by mod ({})", name, modId());
return;
}
@@ -82,14 +82,14 @@ public record TransitiveAccessWidenerMappingsProcessor(Project project) implemen
MappingTree.ClassMapping classMapping = mappingTree.getClass(owner);
if (classMapping == null) {
logger.warn("Failed to find class ({}) to mark access widened by mod ({})", owner, modId());
logger.info("Failed to find class ({}) to mark access widened by mod ({})", owner, modId());
return;
}
MappingTree.MethodMapping methodMapping = classMapping.getMethod(name, descriptor);
if (methodMapping == null) {
logger.warn("Failed to find method ({}) in ({}) to mark access widened by mod ({})", name, owner, modId());
logger.info("Failed to find method ({}) in ({}) to mark access widened by mod ({})", name, owner, modId());
return;
}
@@ -104,14 +104,14 @@ public record TransitiveAccessWidenerMappingsProcessor(Project project) implemen
MappingTree.ClassMapping classMapping = mappingTree.getClass(owner);
if (classMapping == null) {
logger.warn("Failed to find class ({}) to mark access widened by mod ({})", name, modId());
logger.info("Failed to find class ({}) to mark access widened by mod ({})", name, modId());
return;
}
MappingTree.FieldMapping fieldMapping = classMapping.getField(name, descriptor);
if (fieldMapping == null) {
logger.warn("Failed to find field ({}) in ({}) to mark access widened by mod ({})", name, owner, modId());
logger.info("Failed to find field ({}) in ({}) to mark access widened by mod ({})", name, owner, modId());
return;
}