Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 20086 invoked from network); 25 Nov 2008 02:59:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 02:59:06 -0000 Received: (qmail 20906 invoked by uid 500); 25 Nov 2008 02:59:17 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 20876 invoked by uid 500); 25 Nov 2008 02:59:17 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 20867 invoked by uid 99); 25 Nov 2008 02:59:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 18:59:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 02:58:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4D6FB23888A0; Mon, 24 Nov 2008 18:58:46 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r720389 - /incubator/couchdb/trunk/share/server/main.js Date: Tue, 25 Nov 2008 02:58:46 -0000 To: couchdb-commits@incubator.apache.org From: jchris@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081125025846.4D6FB23888A0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jchris Date: Mon Nov 24 18:58:45 2008 New Revision: 720389 URL: http://svn.apache.org/viewvc?rev=720389&view=rev Log: Log the offending doc._id when the view function raises an exception. Modified: incubator/couchdb/trunk/share/server/main.js Modified: incubator/couchdb/trunk/share/server/main.js URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/server/main.js?rev=720389&r1=720388&r2=720389&view=diff ============================================================================== --- incubator/couchdb/trunk/share/server/main.js [utf-8] (original) +++ incubator/couchdb/trunk/share/server/main.js [utf-8] Mon Nov 24 18:58:45 2008 @@ -105,7 +105,8 @@ throw {error: "map_runtime_error", reason: "function raised fatal exception"}; } - print(toJSON({log: "function raised exception (" + err + ")"})); + print(toJSON({log: "function raised exception (" + err + + ") with doc._id " + doc._id})); buf.push("[]"); } }