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

Don't log warnings if there are not fonts to cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.25
    • 2.0.26, 3.0.0 PDFBox
    • None
    • None

    Description

      I'm seeing these warnings:

      2022-01-16 16:49:05,723 WARN  [org.apa.pdf.pdm.fon.FileSystemFontProvider] (executor-thread-10) Building on-disk font cache, this may take a while
      2022-01-16 16:49:05,724 WARN  [org.apa.pdf.pdm.fon.FileSystemFontProvider] (executor-thread-10) Finished building on-disk font cache, found 0 fonts
      

      which are pretty much useless because creating a basically empty cache will not take a while.

      These warnings should only be logged if there actually are font files.

      PS: My case is a Quarkus app running as a docker container based on azul/zulu-openjdk-alpine:17.0.1-jre-headless.

      Attachments

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              famod Falko Modler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: