Wicket
  1. Wicket
  2. WICKET-4835

Add debug log messages in CompoundRequestMapper#mapRequest

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 1.5.9, 6.3.0
    • Component/s: wicket
    • Labels:

      Description

      When there is need for very complex URL mappings it would be handy to have debug log messages written in CompoundRequestMapper#mapRequest(Request), e.g. logging mapperWithScore.toString() for all mappers having a score greater than 0.

      Currently, the best way to debug unexpected behavior with mappings is to attach the wicket sources, put a breakpoint after Collections.sort(list) and inspect the list using the IDE.

        Activity

        Hide
        Martin Grigorov added a comment -

        Since you have the sources around can you please attach a patch ?

        Show
        Martin Grigorov added a comment - Since you have the sources around can you please attach a patch ?
        Hide
        Peter Parson added a comment -

        Patch for debug log messages in CompundRequestMapper (untested)

        Show
        Peter Parson added a comment - Patch for debug log messages in CompundRequestMapper (untested)
        Hide
        Peter Parson added a comment -

        Sure, I have just attached it. However I am currently not able to test it, sorry.

        Show
        Peter Parson added a comment - Sure, I have just attached it. However I am currently not able to test it, sorry.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Peter Parson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development