[ZCM] [ZC] 2155/ 3 Resolve "_log() got an unexpected keyword
argument 'error'"
Chris Withers
chris at simplistix.co.uk
Fri Jul 21 10:38:36 EDT 2006
(replying by email as I'm offline)
Collector: Zope Bugs, Features, and Patches ... wrote:
> in line number 73:
>
> logger.error('Error connecting to relational database.',
> error=exc_info())
>
> and should be:
>
> logger.error('Error connecting to relational database.',
> exc_info=exc_info())
Er, no, that should be:
logger.error('Error connecting to relational database.',
exc_info=True)
> Similarly line 153:
>
> logger.error('Error closing relational database connection.',
> error=exc_info())
>
> should be changed to:
>
> logger.error('Error closing relational database connection.',
> exc_info=exc_info())
Er, no, again:
logger.error('Error closing relational database connection.',
exc_info=True)
...and once these are both done, you can likely loose an extraneous from
or of sys as well ;-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-Collector-Monitor
mailing list