1
0
mirror of https://github.com/google/nomulus synced 2026-01-04 04:04:22 +00:00

Improve some log messages for readability/consistency (#1333)

* Improve some log messages for readability/consistency

* Address code review comments
This commit is contained in:
Ben McIlwain
2021-09-27 11:35:14 -04:00
committed by GitHub
parent ff3c848def
commit 3caee5fba7
100 changed files with 252 additions and 250 deletions

View File

@@ -316,7 +316,7 @@ public class ProxyServer implements Runnable {
MetricReporter metricReporter = proxyComponent.metricReporter();
try {
metricReporter.startAsync().awaitRunning(java.time.Duration.ofSeconds(10));
logger.atInfo().log("Started up MetricReporter");
logger.atInfo().log("Started up MetricReporter.");
} catch (TimeoutException timeoutException) {
logger.atSevere().withCause(timeoutException).log(
"Failed to initialize MetricReporter: %s", timeoutException);
@@ -327,7 +327,7 @@ public class ProxyServer implements Runnable {
() -> {
try {
metricReporter.stopAsync().awaitTerminated(java.time.Duration.ofSeconds(10));
logger.atInfo().log("Shut down MetricReporter");
logger.atInfo().log("Shut down MetricReporter.");
} catch (TimeoutException timeoutException) {
logger.atWarning().withCause(timeoutException).log(
"Failed to stop MetricReporter: %s", timeoutException);