[svn-changes-z4DKO/[email protected]: [Archetypes-checkins] r6887 - Archetypes/branches/1.4]

Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]> Thu, 7 Sep 2006 20:20:30 -0300
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20060907232030.GQ9622@cotia>
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Gee, please use:

  logger.exception()

-- 
Sidnei da Silva
Enfold Systems                http://enfoldsystems.com
Fax +1 832 201 8856     Office +1 713 942 2377 Ext 214

--YZ5djTAD1cGYuMQK
Content-Type: message/rfc822
Content-Disposition: inline

Received: from bob.enfoldsystems.com ([64.34.180.169]) by
	hal.enfoldsystems.local with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 7 Sep 2006 18:07:33 -0500
Received: (qmail 18557 invoked from network); 7 Sep 2006 23:07:32 -0000
Received: by simscan 1.2.0 ppid: 18550, pid: 18551, t: 5.7497s scanners:none
X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on 
	bob.enfoldsystems.com
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=3.5 tests=BAYES_00 autolearn=ham 
	version=3.1.4
Received: from lists.sourceforge.net (HELO mail.sourceforge.net)
	(66.35.250.206)
	by bob.enfoldsystems.com with SMTP; 7 Sep 2006 23:07:26 -0000
Received: from [10.3.1.90] (helo=lists-outbound.sourceforge.net)
	by mail.sourceforge.net with esmtp (Exim 4.44) id 1GLSxx-0000T3-QP
	for [email protected]; Thu, 07 Sep 2006 16:07:26 -0700
Received: from sc8-sf-list2-new.sourceforge.net (unknown [10.3.1.94])
	by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
	id AC347FA27; Thu,  7 Sep 2006 16:07:25 -0700 (PDT)
Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]
	helo=mail.sourceforge.net)
	by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43)
	id 1GLSxv-0000ZI-3j for archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org;
	Thu, 07 Sep 2006 16:07:23 -0700
Received: from antiloop.plone.org ([194.109.109.50] ident=Debian-exim)
	by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.44) id 1GLSxu-0000Sc-Ag
	for archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org;
	Thu, 07 Sep 2006 16:07:23 -0700
Received: from www-data by antiloop.plone.org with local (Exim 4.50)
	id 1GLSxs-0006JQ-2b for archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org;
	Thu, 07 Sep 2006 23:07:20 +0000
From: hannosch <svn-changes-z4DKO/[email protected]>
To: archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
MIME-Version: 1.0
Message-Id: <E1GLSxs-0006JQ-2b-L3KAqWRvItOmomBsMVY0kR2eb7JE58TQ@public.gmane.org>
Date: Thu, 07 Sep 2006 23:07:20 +0000
X-SA-Exim-Connect-IP: <locally generated>
Subject: [Archetypes-checkins] r6887 - Archetypes/branches/1.4
X-BeenThere: archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: <archetypes-checkins.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/archetypes-checkins>,
	<mailto:archetypes-checkins-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=archetypes-checkins>
List-Post: <mailto:archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
List-Help: <mailto:archetypes-checkins-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/archetypes-checkins>,
	<mailto:archetypes-checkins-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: archetypes-checkins-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Errors-To: archetypes-checkins-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Return-Path: archetypes-checkins-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
X-OriginalArrivalTime: 07 Sep 2006 23:07:33.0922 (UTC)
	FILETIME=[66F95820:01C6D2D2]
X-Spambayes-Classification: ham; 0.00

Author: hannosch
Date: Thu Sep  7 23:07:19 2006
New Revision: 6887

Modified:
   Archetypes/branches/1.4/HISTORY.txt
   Archetypes/branches/1.4/debug.py
Log:
Fixed log_exc function in debug.py to print the actual exception including the traceback.


Modified: Archetypes/branches/1.4/HISTORY.txt
==============================================================================
--- Archetypes/branches/1.4/HISTORY.txt	(original)
+++ Archetypes/branches/1.4/HISTORY.txt	Thu Sep  7 23:07:19 2006
@@ -1,6 +1,10 @@
 1.4.1-beta1 - ?
 ===============
 
+  * Fixed log_exc function in debug.py to print the actual exception including
+    the traceback.
+    [hannosch]
+
   * base_edit (anything calling processForm, actually) now fires off
     appropriate IObjectCreatedEvent and IObjectModifiedEvent zope 3 events
     [rocky]

Modified: Archetypes/branches/1.4/debug.py
==============================================================================
--- Archetypes/branches/1.4/debug.py	(original)
+++ Archetypes/branches/1.4/debug.py	Thu Sep  7 23:07:19 2006
@@ -167,7 +167,8 @@
         logger.log(level, msg)
 
     def log_exc(self, msg=None, *args, **kwargs):
-        logger.log(logging.ERROR, '%s:\n%s' % (msg, sys.exc_info()))
+        logger.log(logging.ERROR, '%s:\n%s' % \
+                   (msg, ''.join(traceback.format_exception(*sys.exc_info()))))
 
 def warn(msg, level=3):
     # level is the stack level

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Archetypes-checkins mailing list
Archetypes-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/archetypes-checkins


--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Archetypes-devel mailing list
Archetypes-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/archetypes-devel

--YZ5djTAD1cGYuMQK--