You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by el...@apache.org on 2018/06/14 16:26:03 UTC

[trafficcontrol] 01/07: updated to improve the logging to understand the real URL being watched

This is an automated email from the ASF dual-hosted git repository.

elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit d8c2d20fe0f65f9be08256ba942a57e6261bdac8
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Thu May 17 14:20:44 2018 -0600

    updated to improve the logging to understand the real URL being watched
---
 .../traffic_router/core/util/AbstractResourceWatcher.java             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/util/AbstractResourceWatcher.java b/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/util/AbstractResourceWatcher.java
index 24b2008..9574497 100644
--- a/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/util/AbstractResourceWatcher.java
+++ b/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/util/AbstractResourceWatcher.java
@@ -129,13 +129,13 @@ public abstract class AbstractResourceWatcher extends AbstractServiceUpdater {
 
 	@Override
 	protected File downloadDatabase(final String url, final File existingDb) {
+		final String interpolatedUrl = trafficOpsUtils.replaceTokens(url);
 		if (fetcher == null) {
-			LOGGER.warn("[" + getClass().getSimpleName() + "] Waiting for configuration to be processed, unable to download from '" + url + "'");
+			LOGGER.warn("[" + getClass().getSimpleName() + "] Waiting for configuration to be processed, unable to download from '" + interpolatedUrl + "'");
 			return null;
 		}
 
 		String jsonData = null;
-		final String interpolatedUrl = trafficOpsUtils.replaceTokens(url);
 		try {
 			jsonData = fetcher.fetchIfModifiedSince(interpolatedUrl, existingDb.lastModified());
 		}

-- 
To stop receiving notification emails like this one, please contact
elsloo@apache.org.