mirror of
https://github.com/google/nomulus.git
synced 2025-07-23 19:20:44 +02: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:
parent
3efb2bc509
commit
703c8edd8c
100 changed files with 252 additions and 250 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue