On 5/1/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
>
>
> Yet another error.
>
> My dev.cfg contains:
>
> [logging]
>
> [[handlers]]
> [[[debug_out]]]
> class='FileHandler'
> level='DEBUG'
> args=('spaca-tg.log', 'at+')
>
> Results in:
>
> D:\Projects\Spaca>start-spaca.py
> Traceback (most recent call last):
>   File "D:\Projects\Spaca\start-spaca.py", line 23, in ?
>     modulename="spaca.config")
>   File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line 181, 
> in update_config
>     configure_loggers(configdict)
>   File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line 129, 
> in configure_loggers
>     _get_handlers(handlers, formatters)
>   File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line 41, 
> in _get_handlers
>     args = eval(args, logging.__dict__)
> TypeError: eval() arg 1 must be a string or code object

What an awful error :)

Can you open a ticket on this for 1.0b1?

Right now, it's looking for a string, not a tuple. This is because
you're often trying to log to sys.stdout, which needs to be eval'ed
properly. But, if you do handle it a tuple, I see no reason why it
couldn't use it.

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to