Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-2403

Incorrect naming in RollingFileWithoutDeleteAppender

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:

      Description

      RollingFileWithoutDeleteAppender names the log files incorrectly. The current timestamp is appended to the end of the current log file when rollOver() is called and the previous timestamp is not removed.

      The following files are generated:

      auditLog.log.1536920157248
      auditLog.log.1536920157248.1536920157256
      auditLog.log.1536920157248.1536920157256.1536920157265
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268.1536920157270
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268.1536920157270.1536920157272
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268.1536920157270.1536920157272.1536920157274
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268.1536920157270.1536920157272.1536920157274.1536920157276
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268.1536920157270.1536920157272.1536920157274.1536920157276.1536920157278
      auditLog.log.1536920157248.1536920157256.1536920157265.1536920157268.1536920157270.1536920157272.1536920157274.1536920157276.1536920157278.1536920157279
      

      This can cause problem on certain filesystems (e.g. ext4) when the filename reaches 255 characters.

        Attachments

        1. SENTRY-2403.001.patch
          5 kB
          Peter Somogyi
        2. SENTRY-2403.002.patch
          5 kB
          Peter Somogyi

          Issue Links

            Activity

              People

              • Assignee:
                psomogyi Peter Somogyi
                Reporter:
                psomogyi Peter Somogyi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: