Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0622E17A29 for ; Sat, 13 Jun 2015 17:00:31 +0000 (UTC) Received: (qmail 91916 invoked by uid 500); 13 Jun 2015 17:00:25 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 91907 invoked by uid 99); 13 Jun 2015 17:00:25 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2015 17:00:25 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 5C126AC0553 for ; Sat, 13 Jun 2015 17:00:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1685290 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/core/ solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java Date: Sat, 13 Jun 2015 17:00:25 -0000 To: commits@lucene.apache.org From: andyetitmoves@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150613170025.5C126AC0553@hades.apache.org> Author: andyetitmoves Date: Sat Jun 13 17:00:24 2015 New Revision: 1685290 URL: http://svn.apache.org/r1685290 Log: SOLR-7274: Removed a few eager string constructions from log.debug Modified: lucene/dev/branches/branch_5x/ (props changed) lucene/dev/branches/branch_5x/solr/ (props changed) lucene/dev/branches/branch_5x/solr/core/ (props changed) lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java?rev=1685290&r1=1685289&r2=1685290&view=diff ============================================================================== --- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java (original) +++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java Sat Jun 13 17:00:24 2015 @@ -89,7 +89,7 @@ public class SolrDispatchFilter extends @Override public void init(FilterConfig config) throws ServletException { - log.info("SolrDispatchFilter.init()" + this.getClass().getClassLoader()); + log.info("SolrDispatchFilter.init(): {}", this.getClass().getClassLoader()); String exclude = config.getInitParameter("excludePatterns"); if(exclude != null) { String[] excludeArray = exclude.split(","); @@ -157,7 +157,7 @@ public class SolrDispatchFilter extends if ("zookeeper".equalsIgnoreCase(solrxmlLocation)) { String zkHost = System.getProperty("zkHost"); - log.info("Trying to read solr.xml from " + zkHost); + log.info("Trying to read solr.xml from {}", zkHost); if (StringUtils.isEmpty(zkHost)) throw new SolrException(ErrorCode.SERVER_ERROR, "Could not load solr.xml from zookeeper: zkHost system property not set"); @@ -207,12 +207,12 @@ public class SolrDispatchFilter extends request = wrappedRequest.get(); } if (cores.getAuthenticationPlugin() != null) { - log.debug("User principal: "+((HttpServletRequest)request).getUserPrincipal()); + log.debug("User principal: {}", ((HttpServletRequest)request).getUserPrincipal()); } // No need to even create the HttpSolrCall object if this path is excluded. if(excludePatterns != null) { - String servletPath = ((HttpServletRequest) request).getServletPath().toString(); + String servletPath = ((HttpServletRequest) request).getServletPath(); for (Pattern p : excludePatterns) { Matcher matcher = p.matcher(servletPath); if (matcher.lookingAt()) { @@ -256,7 +256,7 @@ public class SolrDispatchFilter extends return true; } else { try { - log.debug("Request to authenticate: "+request+", domain: "+request.getLocalName()+", port: "+request.getLocalPort()); + log.debug("Request to authenticate: {}, domain: {}, port: {}", request, request.getLocalName(), request.getLocalPort()); // upon successful authentication, this should call the chain's next filter. authenticationPlugin.doAuthenticate(request, response, new FilterChain() { public void doFilter(ServletRequest req, ServletResponse rsp) throws IOException, ServletException {