Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-63

PDOAppender should throw LoggerException on database problems

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Code
    • None

    Description

      As discussed on the mailing list I want log4php to rather throw an Exception than to silently do nothing. The proposed LoggerException is an good idea. Re-throwing every possible PDO exception does not make the code cleaner, though. But luckily it's only necessary in two functions.

      A patch for code and unit test is attached.

      bye,

      christian

      Attachments

        1. PDOException.diff
          4 kB
          Christian Brunotte

        Activity

          People

            Unassigned Unassigned
            lathspell Christian Brunotte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: