Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5874

Change Loglevel from Warn to info when rebuilding font cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.32, 3.0.3 PDFBox
    • 2.0.33, 3.0.4 PDFBox, 4.0.0
    • PDModel
    • None

    Description

      We have a monitoring system for our logfiles and some people get notified whenever there is an error or a warning in the logfiles.

      Due to OS updates, the fonts might be updated or changed. This triggers a rebuild process within PDFBox. Unfortunately, the loglevel is set to Warning and this triggers an alarm.

      The warnings occur in:

      org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java

      The logfile shows the following three entries:

      2024-08-19T18:25:03.653+02:00 WARN FileSystemFontProvider: New fonts found, font cache will be re-built
      2024-08-19T18:25:03.654+02:00 WARN FileSystemFontProvider: Building on-disk font cache, this may take a while
      2024-08-19T18:25:04.105+02:00 WARN FileSystemFontProvider: Finished building on-disk font cache, found 96 fonts

       

      Imho the message is more informational and not necessary a warning. It just gives me the information, that the cache is getting rebuilt.

      It would be great if you could consider setting these messages to info level.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tom_s4t Thomas Hoffmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: