Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 84539 invoked by uid 500); 20 Dec 2001 11:32:07 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 84528 invoked from network); 20 Dec 2001 11:32:07 -0000 From: "Carsten Ziegeler" To: Subject: RE: [RT]: When to log exceptions Date: Thu, 20 Dec 2001 12:33:30 +0100 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20011219162820.GA28670@fztig938.bank.dresdner.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 20.12.2001 12:32:00, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 20.12.2001 12:32:01, Serialize complete at 20.12.2001 12:32:01 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Marcus Crafter wrote: > > Hi Carsten, > > On Wed, Dec 19, 2001 at 04:29:50PM +0100, Carsten Ziegeler wrote: > > > Now, if we stick to a simple rule, we could easily have all > exceptions in > > the log and these only once which would make reading the log > files a little > > bit easier. So, there are two alternatives: > > a) always log an exception when it's raised but not when it's catched > > b) always log an exception when it's catched but not when it's raised > > > > I'm +1 on b). > > > > Opinions? > > I agree with you mate, b). Also, in several places exceptions are > caught, logged and then rethrown (and potentially re-logged > elsewhere), which b) could cover too if we wanted (eg. only log > at the most highest handler). > Yes, especially these place should be changed. Cheers, Carsten > Cheers, > > Marcus > > -- > ..... > ,,$$$$$$$$$, Marcus Crafter > ;$' '$$$$: Computer Systems Engineer > $: $$$$: ManageSoft GmbH > $ o_)$$$: 82-84 Mainzer Landstrasse > ;$, _/\ &&:' 60327 Frankfurt Germany > ' /( &&& > \_&&&&' Email : Marcus.Crafter@managesoft.com > &&&&. Business Hours : +49 69 9757 200 > &&&&&&&: > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org