duplication of isLoggable test in Filehandler and StreamHandler can fire bugs

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 7u25
    • Component/s: core-libs

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      in fact this is not linked to any OS

      A DESCRIPTION OF THE PROBLEM :
      the " publish " method of FileHandler calls isLoggable(record) then calls super.publish(record) that also calls isLoggable(record)
      now I have a subclass of FileHandler that overrides isLoggable(record) and yields false if any LogRecord has already been tested
      so no record gets published!!!!
      the double call to isLoggable should be eliminated


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      explained in the bug description

            Assignee:
            Daniel Fuchs
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: