Re: Problems with logging and Python 2.4

2010-10-06 Thread Vinay Sajip
On Oct 6, 3:19 pm, Russell Keith-Magee wrote: > something to be said for Luke's position of encouraging people to get > away from older Python versions by withholding nice features :-) Amen to that! Regards, Vinay Sajip -- You received this message because you are subscribed to the Google Gr

Re: Problems with logging and Python 2.4

2010-10-06 Thread Russell Keith-Magee
On Wed, Oct 6, 2010 at 9:40 PM, Vinay Sajip wrote: > > On Oct 6, 2:29 pm, Russell Keith-Magee > wrote: >> On Wed, Oct 6, 2010 at 9:23 PM, Vinay Sajip wrote: >> >> > On Oct 6, 11:53 am, Russell Keith-Magee >> > wrote: >> >> On Wed, Oct 6, 2010 at 6:46 PM, Luke Plant wrote: >> >> > On Wed, 2010-

Re: Problems with logging and Python 2.4

2010-10-06 Thread Vinay Sajip
On Oct 6, 2:29 pm, Russell Keith-Magee wrote: > On Wed, Oct 6, 2010 at 9:23 PM, Vinay Sajip wrote: > > > On Oct 6, 11:53 am, Russell Keith-Magee > > wrote: > >> On Wed, Oct 6, 2010 at 6:46 PM, Luke Plant wrote: > >> > On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: > > > There ar

Re: Problems with logging and Python 2.4

2010-10-06 Thread Russell Keith-Magee
On Wed, Oct 6, 2010 at 9:23 PM, Vinay Sajip wrote: > > On Oct 6, 11:53 am, Russell Keith-Magee > wrote: >> On Wed, Oct 6, 2010 at 6:46 PM, Luke Plant wrote: >> > On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: > > There are other possibilities. For example, you could use a Filter t

Re: Problems with logging and Python 2.4

2010-10-06 Thread Russell Keith-Magee
On Wed, Oct 6, 2010 at 9:02 PM, Luke Plant wrote: > On Wed, 2010-10-06 at 07:42 -0400, Karen Tracey wrote: >> On Wed, Oct 6, 2010 at 6:53 AM, Russell Keith-Magee >> wrote: >>         That approach works (as in - it doesn't raise errors), but it >>         means >>         that under Python 2.4, y

Re: Problems with logging and Python 2.4

2010-10-06 Thread Vinay Sajip
On Oct 6, 11:53 am, Russell Keith-Magee wrote: > On Wed, Oct 6, 2010 at 6:46 PM, Luke Plant wrote: > > On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: There are other possibilities. For example, you could use a Filter to add contextual information to the log, as in this example:

Re: Problems with logging and Python 2.4

2010-10-06 Thread Luke Plant
On Wed, 2010-10-06 at 07:42 -0400, Karen Tracey wrote: > On Wed, Oct 6, 2010 at 6:53 AM, Russell Keith-Magee > wrote: > That approach works (as in - it doesn't raise errors), but it > means > that under Python 2.4, you lose any of the "extra" data. In > particular,

Re: Problems with logging and Python 2.4

2010-10-06 Thread Russell Keith-Magee
On Wed, Oct 6, 2010 at 8:08 PM, Luke Plant wrote: > On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: > >> A fourth option would be to include Python's logging module, much as >> we do with doctest, simpleJSON, and we're about to do with unittest2. >> It's a heavyweight option, but it

Re: Problems with logging and Python 2.4

2010-10-06 Thread Luke Plant
On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: > A fourth option would be to include Python's logging module, much as > we do with doctest, simpleJSON, and we're about to do with unittest2. > It's a heavyweight option, but it would do the job. We could remove > the inclusion once we

Re: Problems with logging and Python 2.4

2010-10-06 Thread Luke Plant
On Wed, 2010-10-06 at 18:53 +0800, Russell Keith-Magee wrote: > Now, one possibility is to say "Suck it up and upgrade your Python > version", but I'd rather consider that as a last resort. I guess that's what I'm rather inclined to say :-) . You could argue that if we include the Python 2.5 log

Re: Problems with logging and Python 2.4

2010-10-06 Thread Karen Tracey
On Wed, Oct 6, 2010 at 6:53 AM, Russell Keith-Magee wrote: > That approach works (as in - it doesn't raise errors), but it means > that under Python 2.4, you lose any of the "extra" data. In > particular, it means that > * it's really hard to do anything interesting with the 4XX series errors, >

Re: Problems with logging and Python 2.4

2010-10-06 Thread Russell Keith-Magee
On Wed, Oct 6, 2010 at 6:46 PM, Luke Plant wrote: > On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: > >> Monkeypatching isn't a particularly attractive option to me - there's >> just too much . >> >> A fourth option would be to include Python's logging module, much as >> we do with d

Re: Problems with logging and Python 2.4

2010-10-06 Thread Luke Plant
On Wed, 2010-10-06 at 12:24 +0800, Russell Keith-Magee wrote: > Monkeypatching isn't a particularly attractive option to me - there's > just too much . > > A fourth option would be to include Python's logging module, much as > we do with doctest, simpleJSON, and we're about to do with unittest2.

Re: Problems with logging and Python 2.4

2010-10-05 Thread Russell Keith-Magee
Dang - accidentally hit send. Let's try that again. 2010/10/6 Russell Keith-Magee : > 2010/10/6 Łukasz Rekucki : >> Hi, >> >> I'm getting a whole bunch of errors related to logging on Python 2.4:: >> >> ERROR: Missing templates are correctly reported by test client >> -

Re: Problems with logging and Python 2.4

2010-10-05 Thread Russell Keith-Magee
2010/10/6 Łukasz Rekucki : > Hi, > > I'm getting a whole bunch of errors related to logging on Python 2.4:: > > ERROR: Missing templates are correctly reported by test client > -- > Traceback (most recent call last): >  File > "/h

Problems with logging and Python 2.4

2010-10-05 Thread Łukasz Rekucki
Hi, I'm getting a whole bunch of errors related to logging on Python 2.4:: ERROR: Missing templates are correctly reported by test client -- Traceback (most recent call last): File "/home/lrekucki/projekty/django/django_trunk/