RE: [ZODB-Dev] Re: Weird errors with Zope 2.7.7

2005-10-27 Thread Tim Peters
[Chris] >>> logger.info('blah',show_stack=True) ... [Tim] >> It's not hard to roll yourself, so I expect (but don't know) that the >> logging module's author would resist adding it. [Chris] > I guess that's my question. Where and who should I ask about it? On a Python list (doh ;-)). Vinay Saj

Re: [ZODB-Dev] Re: Weird errors with Zope 2.7.7

2005-10-27 Thread Chris Withers
Tim Peters wrote: [Chris Withers] I'd like to be able to do: logger.info('blah',show_stack=True) Well, you can't ;-) I know ;-) It's not hard to roll yourself, so I expect (but don't know) that the logging module's author would resist adding it. I guess that's my question. Where and w

RE: [ZODB-Dev] Re: Weird errors with Zope 2.7.7

2005-10-25 Thread Tim Peters
[Chris Withers] > I'd like to be able to do: > > logger.info('blah',show_stack=True) Well, you can't ;-) It's not hard to roll yourself, so I expect (but don't know) that the logging module's author would resist adding it. For example, import traceback from cStringIO import StringIO ... ..

[ZODB-Dev] Re: Weird errors with Zope 2.7.7

2005-10-25 Thread Chris Withers
Florent Guillaume wrote: I guess I'm looking for a show_stack option... import traceback; traceback.print_stack() Yes thankyou, my egg sucking is quite proficient ;-) Tim, how would I go about getting one of those added to Python? (It's not much of a code change, but the process of getting

[ZODB-Dev] Re: Weird errors with Zope 2.7.7

2005-10-25 Thread Florent Guillaume
Chris Withers wrote: Dieter Maurer wrote: -self._log.error(msg) +self._log.error(msg,exc_info=True) raise ConnectionStateError(msg) I mind -- the change is stupid: Because you are not in an exception handler, "exc_info=True" cannot provide meaningful