Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1332

Invalid JSON shows debug level info in response

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.1
    • 1.2, 1.3
    • HTTP Interface
    • OS X 10.7.1 Macbook Pro

    • New Contributors Level (Easy)

    Description

      When sending invalid JSON in an HTTP request, the response contains the string "invalid UTF-8 JSON: " followed by an erlang tuple and the escaped internal form of the string. I noticed that this error tuple is only logged when the [log] level is debug. I would propose that the error tuple only be show in the client response when debug is on as well.

      Attachments

        1. COUCHDB-1332.patch
          1 kB
          Christopher Bonhage

        Activity

          People

            Unassigned Unassigned
            bonhage Christopher Bonhage
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: