Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1126

security debug logging is a little verbose

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.19.Final
    • None
    • None
    • None

      This is a suggestion to turn some of the DEBUG logging in undertow from the io.undertow.request.security category into TRACE logging. We're using Undertow in our CommandBox CLI for running servers and the amount of stuff being logged for every single request is a little intense. I would consider most of this trace info. All debug should say is "This request ran" IMO. Yes, I know I can just turn off the logging category, but I'd still like to get a little info about each request. I'd just save the giant serialized object dumps for a "trace" log.

      Here's an example of a specific debug log I'm talking about. All this is logged for every request which making tailing the server logs pretty difficult to read.

      2017-06-29 17:41:18 DEBUG io.undertow.request.security Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@320e8341 for HttpServerExchange{ GET /lucee/res/css/admin-2aa5736da7559e9c.css.cfm request {Connection=[keep-alive], Accept=[text/css,/;q=0.1], Accept-Language=[en-US,en;q=0.8], Accept-Encoding=[gzip, deflate, br], Cookie=[RAILO_ADMIN_LANG=en; RAILO_ADMIN_LASTPAGE=services.cache; c5ffs83kavlv1elgjtaoudg6i5-agile-crm-guid=b7bc4ca5-ceb8-6d5d-6135-556d804b96a0; __utma=96992031.586159258.1449869838.1487261602.1487263827.17; __utmz=96992031.1476806649.9.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); CF_CLIENT_COLDBOX_TESTING_HARNESS644E984B2D79F653C7EE9132B661CAFE768_LV=1496349502650; CF_CLIENT_COLDBOX_TESTING_HARNESS644E984B2D79F653C7EE9132B661CAFE768_TC=1496349172920; CF_CLIENT_COLDBOX_TESTING_HARNESS644E984B2D79F653C7EE9132B661CAFE768_HC=6; _ga=GA1.1.586159258.1449869838; DEFAULTLOCALE=en_US; LUCEE_ADMIN_LANG=en; LUCEE_ADMIN_PW_SERVER=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; JSESSIONID=cANz7LVwRGJzFEGh6kIqvOCs4AUjJUHhEK7rZHYr; cfid=53de4579-032c-4214-877a-0a45e2079567; cftoken=0; LUCEE_ADMIN_LASTPAGE=services.cache], User-Agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36], Referer=http://127.0.0.1:49339/lucee/admin/server.cfm?action=services.cache&action2=create, Host=[127.0.0.1:49339]} response {}}

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              bdw429s Brad Wood (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: