413393 better logging of bad URLs in Resources
This commit is contained in:
parent
e4ef8ee1f4
commit
8f190476b7
|
@ -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.
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue