Sling
  1. Sling
  2. SLING-889

Access log uses request.getRemoteHost() which does reverse dns lookups

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Engine 2.0.2
    • Fix Version/s: Engine 2.0.4
    • Component/s: Engine
    • Labels:
      None

      Description

      By default the access logger logs (among other things) "%h" which does a call to request:getRemoteHost(). This call can be expensive as it might perform
      a complete reverse dns lookup on each log statement.
      For increased performance "%a" should be used to just display the ip address

        Activity

        Hide
        Carsten Ziegeler added a comment -

        Changed the log format in revision 754851.

        Show
        Carsten Ziegeler added a comment - Changed the log format in revision 754851.

          People

          • Assignee:
            Carsten Ziegeler
            Reporter:
            Carsten Ziegeler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development