couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"
Date Mon, 15 Nov 2010 00:08:14 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Lehnardt closed COUCHDB-895.
--------------------------------

    Resolution: Fixed

> 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, 1.1
>
>         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.


Mime
View raw message