You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2016/07/15 13:19:06 UTC

[39/50] [abbrv] struts git commit: Simplifies logging

Simplifies logging


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/8b607857
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/8b607857
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/8b607857

Branch: refs/heads/master
Commit: 8b6078570ebec52bfd23f3667d9736fc30bbc8d3
Parents: 47c6467
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Sun Jan 17 10:25:36 2016 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Tue Jan 19 16:19:20 2016 +0100

----------------------------------------------------------------------
 .../struts2/tiles/StrutsWildcardServletApplicationContext.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/8b607857/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
----------------------------------------------------------------------
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
index 2f67f04..0fa1bc3 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
@@ -24,7 +24,6 @@ import com.opensymphony.xwork2.util.WildcardUtil;
 import com.opensymphony.xwork2.util.finder.ResourceFinder;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.message.MessageFormatMessage;
 import org.apache.tiles.request.ApplicationResource;
 import org.apache.tiles.request.servlet.ServletApplicationContext;
 
@@ -89,7 +88,7 @@ public class StrutsWildcardServletApplicationContext extends ServletApplicationC
         try {
             resources.addAll(findResources(path));
         } catch (IOException e) {
-            LOG.error(new MessageFormatMessage("Cannot find resources for [{}]", path), e);
+            LOG.error("Cannot find resources for [{}]", path, e);
         }
 
         return resources;
@@ -101,7 +100,7 @@ public class StrutsWildcardServletApplicationContext extends ServletApplicationC
             try {
                 return new StrutsApplicationResource(URI.create("file://" + localePath).toURL());
             } catch (MalformedURLException e) {
-                LOG.warn(new MessageFormatMessage("Cannot access [{}]", localePath), e);
+                LOG.warn("Cannot access [{}]", localePath, e);
                 return null;
             }
         }