Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-07-22 09:30:43 -0400
committerGreg Wilkins2013-07-22 09:30:43 -0400
commit8f190476b7c3653dd56c3c2a140555af26bd74e8 (patch)
tree8894e596020389807d1d39534848a2ebca5a8a47
parente4ef8ee1f49c7fa3d837d7c3382f405f682ee3c9 (diff)
downloadorg.eclipse.jetty.project-8f190476b7c3653dd56c3c2a140555af26bd74e8.tar.gz
org.eclipse.jetty.project-8f190476b7c3653dd56c3c2a140555af26bd74e8.tar.xz
org.eclipse.jetty.project-8f190476b7c3653dd56c3c2a140555af26bd74e8.zip
413393 better logging of bad URLs in Resources
-rw-r--r--examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java2
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java1
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java
index c77ac42c96..15d947a1f9 100644
--- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java
+++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java
@@ -23,8 +23,6 @@ import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.DefaultHandler;
import org.eclipse.jetty.server.handler.HandlerList;
import org.eclipse.jetty.server.handler.ResourceHandler;
-import org.eclipse.jetty.util.log.Log;
-import org.eclipse.jetty.util.log.Logger;
/* ------------------------------------------------------------ */
/** Simple Jetty FileServer.
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
index 683156672f..3523105eca 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
@@ -114,6 +114,7 @@ public abstract class Resource implements ResourceFactory, Closeable
}
catch(Exception e)
{
+ LOG.warn(e.toString());
LOG.debug(Log.EXCEPTION,e);
return new BadResource(url,e.toString());
}

Back to the top