Skip to content

Commit ccc9b9d

Browse files
Googlercopybara-github
authored andcommitted
Automatic code cleanup.
PiperOrigin-RevId: 415349792
1 parent 5c5f785 commit ccc9b9d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/main/java/com/google/devtools/build/lib/analysis/test/TestRunnerAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ public boolean actionCacheHit(ActionCachedContext executor) {
608608
.getContext(TestActionContext.class)
609609
.newCachedTestResult(executor.getExecRoot(), this, cachedTestResultData.get()));
610610
} catch (IOException e) {
611-
logger.atInfo().log(getErrorMessageOnNewCachedTestResultError(e.getMessage()));
611+
logger.atInfo().log("%s", getErrorMessageOnNewCachedTestResultError(e.getMessage()));
612612
executor
613613
.getEventHandler()
614614
.handle(Event.warn(getErrorMessageOnNewCachedTestResultError(e.getMessage())));

src/main/java/com/google/devtools/build/lib/platform/SystemLoadAdvisoryModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ private synchronized void reportSystemLoadAdvisoryEvent(boolean isInitialValue,
9595

9696
if (value < 0 || value > 100) {
9797
// values outside this range are not expected.
98-
logger.atSevere().log(logString);
98+
logger.atSevere().log("%s", logString);
9999
} else if (value > 50) {
100100
// 50 arbitrarily chosen as point where user is likely to be more concerned.
101-
logger.atWarning().log(logString);
101+
logger.atWarning().log("%s", logString);
102102
} else if (!isInitialValue || value > 25) {
103103
// Don't spam the logs if we have a Great or OK value at startup.
104-
logger.atInfo().log(logString);
104+
logger.atInfo().log("%s", logString);
105105
}
106106
if (reporter != null) {
107107
reporter.post(event);

src/main/java/com/google/devtools/build/lib/platform/SystemMemoryPressureMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ synchronized void memoryPressureCallback(int value) {
5959
if (reporter != null) {
6060
reporter.post(event);
6161
}
62-
logger.atInfo().log(event.logString());
62+
logger.atInfo().log("%s", event.logString());
6363
eventCount += 1;
6464
}
6565
}

src/main/java/com/google/devtools/build/lib/platform/SystemSuspensionModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public synchronized void afterCommand() {
5555
/** Callback method called from JNI whenever a suspension event occurs. */
5656
synchronized void suspendCallback(int reason) {
5757
SystemSuspensionEvent event = new SystemSuspensionEvent(reason);
58-
logger.atInfo().log(event.logString());
58+
logger.atInfo().log("%s", event.logString());
5959
if (reporter != null) {
6060
reporter.post(event);
6161
}

src/main/java/com/google/devtools/build/lib/platform/SystemThermalModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ private synchronized void reportThermalEvent(boolean isInitialValue, int value)
102102

103103
if (value < 0 || value > 100) {
104104
// values outside this range are not expected.
105-
logger.atSevere().log(logString);
105+
logger.atSevere().log("%s", logString);
106106
} else if (value > 50) {
107107
// 50 arbitrarily chosen as point where user is likely to be more concerned.
108-
logger.atWarning().log(logString);
108+
logger.atWarning().log("%s", logString);
109109
} else if (!isInitialValue || value != 0) {
110110
// Don't spam the logs if we have a nominal value at startup.
111-
logger.atInfo().log(logString);
111+
logger.atInfo().log("%s", logString);
112112
}
113113
if (reporter != null) {
114114
reporter.post(event);

0 commit comments

Comments
 (0)