[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
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
[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
...
..
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
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