Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4645

access log rotates even when rotation is disabled by "rotate" attribute

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      created

      /subsystem=undertow/server=default-server/host=default-host/setting=access-log:add()
      

      disabled rotation:

      /subsystem=undertow/server=default-server/host=default-host/setting=access-log/:write-attribute(name=rotate,value=false)
      

      performed server reload

      reload
      

      some request on server (so logfile itself is created)
      change of last modification time of the logfile in filesystem to yesterday, e.g.:

      touch -r some_propper_file logfile
      

      performed reload of the server (to reinitialize working with logfile) and request on the server again... now logfile has rotated but I expected that it won't.

      Show
      created /subsystem=undertow/server= default -server/host= default -host/setting=access-log:add() disabled rotation: /subsystem=undertow/server= default -server/host= default -host/setting=access-log/:write-attribute(name=rotate,value= false ) performed server reload reload some request on server (so logfile itself is created) change of last modification time of the logfile in filesystem to yesterday, e.g.: touch -r some_propper_file logfile performed reload of the server (to reinitialize working with logfile) and request on the server again... now logfile has rotated but I expected that it won't.

      Description

      When I disable access log rotation by setting "rotate" attribute to false:

      /subsystem=undertow/server=default-server/host=default-host/setting=access-log/:write-attribute(name=rotate,value=false)
      

      The logfile keeps rotating - how tested in "Steps to Reproduce" section.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ctomc Tomaž Cerar
                  Reporter:
                  ctomc Tomaž Cerar
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: