413393 better logging of bad URLs in Resources

This commit is contained in:
Greg Wilkins 2013-07-22 23:30:43 +10:00
parent e4ef8ee1f4
commit 8f190476b7
2 changed files with 1 additions and 2 deletions

View File

@ -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.

View File

@ -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());
}