Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes #151

Merged
merged 1 commit into from
Jul 23, 2014
Merged
Show file tree
Hide file tree
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
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