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 3efb2bc509
commit 703c8edd8c
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);