On 25 dic, 13:24, Steven D'Aprano <st...@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...@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' -- http://mail.python.org/mailman/listinfo/python-list