Skip to content

Commit

Permalink
Merge pull request #151 from qiangdavidliu/minorfixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
qiangdavidliu committed Jul 23, 2014
2 parents 27af44d + bd86f52 commit 4e229bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,8 @@ private ClientResponse makeRemoteCall(Action action, int serviceUrlIndex)
break;
}

if (logger.isInfoEnabled()) {
logger.info("Finished a call to service url {} and url path {} with status code {}.",
if (logger.isDebugEnabled()) {
logger.debug("Finished a call to service url {} and url path {} with status code {}.",
new String[] {serviceUrl, urlPath, String.valueOf(response.getStatus())});
}
if (isOk(action, response.getStatus())) {
Expand Down Expand Up @@ -1687,7 +1687,7 @@ public void run() {
allAppsHashCodes.append(" , apps hashcode: ");
allAppsHashCodes.append(entry.getValue().getAppsHashCode());
}
logger.info("Completed cache refresh task for discovery. All Apps hash code is {} ",
logger.debug("Completed cache refresh task for discovery. All Apps hash code is {} ",
allAppsHashCodes.toString());
}
} catch (Throwable th) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class ServerRequestAuthFilter implements Filter {
public static final String UNKNOWN = "unknown";

private static final String NAME_PREFIX = "DiscoveryServerRequestAuth_Name_";
private static final String ID_PREFIX = "DiscoveryServerRequestAuth_Id_";

@Override
public void init(FilterConfig filterConfig) throws ServletException {
Expand All @@ -47,10 +46,8 @@ protected void logAuth(ServletRequest request) {

String clientName = getHeader(httpRequest, AbstractEurekaIdentity.AUTH_NAME_HEADER_KEY);
String clientVersion = getHeader(httpRequest, AbstractEurekaIdentity.AUTH_VERSION_HEADER_KEY);
String clientId = getHeader(httpRequest, AbstractEurekaIdentity.AUTH_ID_HEADER_KEY);

DynamicCounter.increment(MonitorConfig.builder(NAME_PREFIX + clientName + "-" + clientVersion).build());
DynamicCounter.increment(MonitorConfig.builder(ID_PREFIX + clientId).build());
}
}
}
Expand Down

0 comments on commit 4e229bc

Please sign in to comment.