Extra fields for logging
Joan Miller
peloko45 at gmail.com
Fri Dec 25 15:07:20 EST 2009
On 25 dic, 13:24, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:
> On Thu, 24 Dec 2009 05:06:48 -0800, Joan Miller wrote:
> > I'm trying to add some extra fields to logging, I'm following this
> > information [1] but it faills in my case.
> [...]
> > I get => KeyError: 'host'
>
> Please post the entire traceback you get.
>
> --
> Steven
On 25 dic, 13:24, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:
> On Thu, 24 Dec 2009 05:06:48 -0800, Joan Miller wrote:
> > I'm trying to add some extra fields to logging, I'm following this
> > information [1] but it faills in my case.
> [...]
> > I get => KeyError: 'host'
>
> Please post the entire traceback you get.
>
> --
> Steven
Traceback (most recent call last):
File "/usr/lib/python2.6/logging/__init__.py", line 768, in emit
msg = self.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 648, in format
return fmt.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 439, in format
s = self._fmt % record.__dict__
KeyError: 'host'
More information about the Python-list
mailing list