Skip to content

Commit 9895eb7

Browse files
author
Igor Polevoy
committed
#317 StringIndexOutOfBoundsException for some URLs - added debug logging
1 parent 04b1cab commit 9895eb7

File tree

1 file changed

+2
-0
lines changed
  • activeweb/src/main/java/org/javalite/activeweb

1 file changed

+2
-0
lines changed

activeweb/src/main/java/org/javalite/activeweb/Router.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @author Igor Polevoy
3535
*/
3636
public class Router {
37+
private static Logger logger = LoggerFactory.getLogger(Router.class);
3738

3839
private static final Logger LOGGER = LoggerFactory.getLogger(Router.class.getSimpleName());
3940

@@ -89,6 +90,7 @@ protected Route recognize(String uri, HttpMethod httpMethod) throws ClassLoadExc
8990
if(route != null){
9091
route.setIgnoreSpecs(ignoreSpecs);
9192
}else{
93+
logger.error("Failed to recognize URL: '" + uri + "'");
9294
throw new RouteException("Failed to map resource to URI: " + uri);
9395
}
9496

0 commit comments

Comments
 (0)