8000 Fix logging. · soujava/vertx-config@5fa6101 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fa6101

Browse files
committed
Fix logging.
Avoid dumping the error message. Very annoying with the periodic scan.
1 parent edf79fb commit 5fa6101

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vertx-config/src/main/java/io/vertx/config/impl/ConfigurationProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ void get(Vertx vertx, Handler<AsyncResult<JsonObject>> completionHandler) {
6060
store.get(maybeBuffer -> {
6161
if (maybeBuffer.failed()) {
6262
if (optional) {
63-
logger.warn("Unable to retrieve the configuration " + maybeBuffer.cause().getMessage());
6463
if (logger.isDebugEnabled()) {
65-
logger.debug("Failure caught when retrieving the configuration", maybeBuffer.cause());
64+
logger.debug("Unable to retrieve the configuration", maybeBuffer.cause());
6665
}
6766
completionHandler.handle(Future.succeededFuture(new JsonObject()));
6867
} else {

0 commit comments

Comments
 (0)
0