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
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 lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/arc
hetypes-checkins
------------------------------------------------------------
-------------
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&a
mp;kid=120709&bid=263057&dat=121642_________________
______________________________
Archetypes-devel mailing list
Archetypes-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/archet
ypes-devel
|