https://bz.apache.org/bugzilla/show_bug.cgi?id=66138

            Bug ID: 66138
           Summary: Log level ERROR is too severe in ZipPackage when we
                    will try a fall back
           Product: POI
           Version: 5.2.2-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: OPC
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

In ZipPackage line 174 (in trunk)  when one IOException is thrown by
ZipFileZipEntrySource the code tries to fall back to stream processing, and a
log message severity ERROR is generated.

The mentioned line code:

LOG.atError().log("Error in zip file {} - falling back to stream processing
(i.e. ignoring zip central directory)", file);



In my opinion, the ERROR severity is too high, as the code will try a fall
back.
As ERROR severity logs, in our environment, generate some actions to evaluate
what is happening, this can be unnecessary, because the fall back may
successfully circumvent the problem.

So my suggestion is to decrease to WARNING severity.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to