Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Fixes logging error in ConsulCache #60

Merged
merged 1 commit into from
Sep 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/com/orbitz/consul/cache/ConsulCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.orbitz.consul.async.ConsulResponseCallback;
import com.orbitz.consul.model.ConsulResponse;
import com.orbitz.consul.option.QueryOptions;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -82,7 +83,7 @@ public void onComplete(ConsulResponse<List<V>> consulResponse) {
@Override
public void onFailure(Throwable throwable) {

LOGGER.error("Error getting response from consul. will retry in {} {}", backoffDelayQty, backoffDelayUnit, throwable);
LOGGER.error(String.format("Error getting response from consul. will retry in %d %s", backoffDelayQty, backoffDelayUnit), throwable);

executorService.schedule(new Runnable() {
@Override
Expand Down