Fix calls to Flogger's `log(String)` method that would be in error when `@CompileTimeConstant` is added to its parameter.
In most cases: `log(nonConstantExpr)` becomes `log("%s", nonConstantExpr)`
When the argument is a parameter annotated with `@FormatString`: replace `@FormatString` with `@CompileTimeConstant`
@@ -68,6 +68,6 @@ public final class SystemCPUSpeedModule extends BlazeModule {
if (reporter != null) {
reporter.post(event);
}
- logger.atInfo().log(event.logString());
+ logger.atInfo().log("%s", event.logString());
}
}
