Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 24106 invoked from network); 2 Mar 2009 15:59:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 15:59:51 -0000 Received: (qmail 6908 invoked by uid 500); 2 Mar 2009 15:59:46 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 6889 invoked by uid 500); 2 Mar 2009 15:59:46 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 6880 invoked by uid 99); 2 Mar 2009 15:59:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 07:59:46 -0800 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of adam.prime@utoronto.ca does not designate 216.220.44.220 as permitted sender) Received: from [216.220.44.220] (HELO mail.oanda.com) (216.220.44.220) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 15:59:39 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.oanda.com (Postfix) with ESMTP id A7C1CEC028; Mon, 2 Mar 2009 10:59:18 -0500 (EST) Received: from mail.oanda.com ([127.0.0.1]) by localhost (mail.q9.oanda.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06327-06; Mon, 2 Mar 2009 10:59:18 -0500 (EST) Received: from gateway.oanda.com (eddie.dev.oanda.com [10.1.1.10]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.oanda.com (Postfix) with ESMTPS id 9380BEC003; Mon, 2 Mar 2009 10:59:18 -0500 (EST) Received: from [10.1.5.118] (primepc.dev.oanda.com [10.1.5.118]) by eddie.dev.oanda.com (Postfix) with ESMTP id 820B464087; Mon, 2 Mar 2009 10:59:18 -0500 (EST) Message-ID: <49AC0256.4070003@utoronto.ca> Date: Mon, 02 Mar 2009 10:59:18 -0500 From: Adam Prime User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Michael Peters CC: Perrin Harkins , Matthew Lenz , mod_perl list Subject: Re: get backtrace emailed when code dies running under ModPerl::RegistryPrefork? References: <1236005687.5979.12.camel@mlenz-desktop> <66887a3d0903020720u7b43dbdeude1e8574c7e60980@mail.gmail.com> <49ABFBDF.5010403@plusthree.com> In-Reply-To: <49ABFBDF.5010403@plusthree.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Michael Peters wrote: > > You don't even need to use a __DIE__ handler. mod_perl will place any > runtime errors into $r->notes('error-notes'). I don't like my errors > going to the browser (only really works if your content is HTML anyway) > but for the email I usually use an Apache cleanup handler. That way it > gets sent after the client request has returned, so they don't have to > wait on it. > This was news to me, so i went to the docs. According to them, you have to explicitly enable this behavior. see: http://perl.apache.org/docs/2.0/api/Apache2/Log.html#C_Apache2__Const__LOG_TOCLIENT_ Is that still accurate? Adam