[
https://issues.apache.org/jira/browse/PDFBOX-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725763#comment-14725763
]
Tilman Hausherr commented on PDFBOX-2952:
-----------------------------------------
The problem is that there is no simple rule. In your case, the wrong code was
ffffffff and isn't important. But it could also be something completely
different, and then you'd get a bad rendering / text extraction / whatever, and
the log would help finding the cause.
Originally, it was an exception, and it has been changed to an error some time
ago.
I can change it to warning if you want. But you said that this also results in
a notice...
Btw, "severe" is an ordinary error in Log4J.
> Log statement on level 'severe' while nothing else indicates error
> ------------------------------------------------------------------
>
> Key: PDFBOX-2952
> URL: https://issues.apache.org/jira/browse/PDFBOX-2952
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 1.8.10
> Environment: Ubuntu 15.04. Java SE 7.
> Reporter: Are Husby
> Attachments: Reproduce log statement on level severe.zip
>
>
> I use PdfBox to insert a little bit of text at the top of my PDF-documents. I
> have found one case (one input document) where Fontbox emits a log record on
> level severe/error, without throwing any exception, and where I cannot see
> any problems with the output PDF document when inspecting it manually.
> The log record causes noise and disturbance for our operations guys, who use
> some automatic log monitoring tool that will raise an alarm for any log
> record with level "severe"/"error", and that will even raise a notice for log
> records with level "warning".
> I can configure our logging tool to ignore all logging from the Fontbox Java
> class as a workaround, but I would prefer not to.
> I will try to attach to this Jira issue a zip file with the PDF document in
> case and a small, self-contained Java application that allows you to easily
> reproduce the problem.
> The log record looks like this:
> {noformat}
> Sep 01, 2015 1:18:18 PM org.apache.fontbox.cmap.CMap addMapping
> SEVERE: Mapping code should be 1 or two bytes and not 4
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]