Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-416

java.util.logging eats exceptions without warning

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1
    • Component/s: Java - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Using java.util.logging has two related problems.

      One is that virtually no java project in the wild uses it. Everyone uses the more advanced log4j.

      Two is that unlike log4j, java.util.logging does not warn you when it is swallowing errors because it has not been configured.

      So thrift exceptions vanish without a trace which is bad.

      Here is a patch to switch to log4j.

        Attachments

        1. 0001-allow-exceptions-to-propagate-up-where-feasible.-on.patch
          12 kB
          Jonathan Ellis
        2. 0002-switch-to-log4j.patch
          13 kB
          Jonathan Ellis
        3. THRIFT-416-2.patch
          15 kB
          Jonathan Ellis
        4. thrift-416-v3.patch
          13 kB
          Bryan Duxbury

          Issue Links

            Activity

              People

              • Assignee:
                jbellis Jonathan Ellis
                Reporter:
                jbellis Jonathan Ellis
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: