Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-858

Review all log.exception() calls

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.5
    • Component/s: Framework

      Description

      Actually, log.exception() is often used with an Exception as argument. This is wrong and we end on different errors when reporting these lines.

      It must be used with an sentence, and the exception itself will be automatically appened to the log (using the right encoding).

      To resume, log.exception(message) is just an alias for log.error(message, exc_info=True).

      Sources:

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 1 hour
                2d 1h