Make sure to log stack traces in tofu warning messages to increase visibility.
Otherwise people won't notice these errors and since they generally cause issues in the tofu migration we should increase visibility.
GITHUB_BREAKING_CHANGES=none
@@ -331,7 +331,8 @@ public final class SoyProtoValue extends SoyAbstractValue implements SoyLegacyOb
String.format(
"Accessing a proto of type %s as a %s is deprecated. Add static types to fix."
+ "\n\t%s",
- fullName, type, locationKey));
+ fullName, type, locationKey),
+ new Exception("bad proto access @" + locationKey));
}
return Flags.allowReflectiveProtoAccess();
}
