You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benjamin Young (JIRA)" <ji...@apache.org> on 2010/09/27 21:48:33 UTC

[jira] Created: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"

Improved log() function to handle "undefined" as well as object's of type "xml"
-------------------------------------------------------------------------------

                 Key: COUCHDB-895
                 URL: https://issues.apache.org/jira/browse/COUCHDB-895
             Project: CouchDB
          Issue Type: Improvement
          Components: JavaScript View Server
    Affects Versions: 1.0.1, 1.0, 0.11.2, 0.11.1
            Reporter: Benjamin Young
            Priority: Minor
             Fix For: 1.0.2


Currently (1.0.1 and below), if you try log(undefined) in a map/reduce or other JS function in CouchDB, you'll get a rather verbose stack trace. This patch casts the message var as a String to avoid that stack trace and output the text representation of "undefined".

Additionally, this patch includes outputting XML objects (build with E4X: new XML('<test />')) as string representations of the entire XML (using toXMLString()).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"

Posted by "Benjamin Young (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Young updated COUCHDB-895:
-----------------------------------

    Attachment: log_improvements.diff

> Improved log() function to handle "undefined" as well as object's of type "xml"
> -------------------------------------------------------------------------------
>
>                 Key: COUCHDB-895
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-895
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>    Affects Versions: 0.11.1, 0.11.2, 1.0, 1.0.1
>            Reporter: Benjamin Young
>            Priority: Minor
>             Fix For: 1.0.2
>
>         Attachments: log_improvements.diff
>
>
> Currently (1.0.1 and below), if you try log(undefined) in a map/reduce or other JS function in CouchDB, you'll get a rather verbose stack trace. This patch casts the message var as a String to avoid that stack trace and output the text representation of "undefined".
> Additionally, this patch includes outputting XML objects (build with E4X: new XML('<test />')) as string representations of the entire XML (using toXMLString()).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-895:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> Improved log() function to handle "undefined" as well as object's of type "xml"
> -------------------------------------------------------------------------------
>
>                 Key: COUCHDB-895
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-895
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>    Affects Versions: 0.11.1, 0.11.2, 1.0, 1.0.1
>            Reporter: Benjamin Young
>            Priority: Minor
>             Fix For: 1.0.2
>
>         Attachments: log_improvements.diff
>
>
> Currently (1.0.1 and below), if you try log(undefined) in a map/reduce or other JS function in CouchDB, you'll get a rather verbose stack trace. This patch casts the message var as a String to avoid that stack trace and output the text representation of "undefined".
> Additionally, this patch includes outputting XML objects (build with E4X: new XML('<test />')) as string representations of the entire XML (using toXMLString()).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.