@@ -53,8 +53,8 @@ protected void run(Route route, boolean integrateViews) throws Exception {
53
53
54
54
String actionMethod = Inflector .camelize (route .getActionName ().replace ('-' , '_' ), false );
55
55
if (checkActionMethod (route .getController (), actionMethod )) {
56
- //Configuration.getTemplateManager().
57
56
injectController (route .getController ());
57
+ LOGGER .debug ("Executing: " + route .getController () + "#" + actionMethod );
58
58
executeAction (route .getController (), actionMethod );
59
59
}
60
60
}
@@ -207,11 +207,9 @@ private boolean checkActionMethod(AppController controller, String actionMethod)
207
207
private boolean exceptionHandled (Exception e , Route route ) throws Exception {
208
208
for (HttpSupportFilter filter : Configuration .getFilters ()){
209
209
if (Configuration .getFilterMetadata (filter ).matches (route )){
210
- if (Configuration .logRequestParams ()) {
211
- LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#before" );
212
- }
210
+ LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#exceptionHandled" );
213
211
filter .onException (e );
214
- if (RequestContext .getControllerResponse () != null ){ // this filter sent a response, breaking the loop
212
+ if (RequestContext .getControllerResponse () != null ){ // this filter sent a response, breaking the loop
215
213
break ;
216
214
}
217
215
}
@@ -227,16 +225,10 @@ private boolean exceptionHandled(Exception e, Route route) throws Exception{
227
225
*/
228
226
private void filterBefore (Route route ) {
229
227
try {
230
- List <HttpSupportFilter > filters = Configuration .getFilters ();
231
228
232
229
for (HttpSupportFilter filter : Configuration .getFilters ()){
233
- if (Configuration .logRequestParams ()) {
234
- LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#before" );
235
- }
236
230
if (Configuration .getFilterMetadata (filter ).matches (route )){
237
- if (Configuration .logRequestParams ()) {
238
- LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#after" );
239
- }
231
+ LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#before" );
240
232
filter .before ();
241
233
}
242
234
if (RequestContext .getControllerResponse () != null ){
@@ -256,9 +248,7 @@ private void filterAfter(Route route) {
256
248
for (int i = filters .size () - 1 ; i >= 0 ; i --) {
257
249
HttpSupportFilter filter = filters .get (i );
258
250
if (Configuration .getFilterMetadata (filter ).matches (route )){
259
- if (Configuration .logRequestParams ()) {
260
- LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#after" );
261
- }
251
+ LOGGER .debug ("Executing filter: " + filter .getClass ().getName () + "#after" );
262
252
filters .get (i ).after ();
263
253
}
264
254
}
0 commit comments