"Max Ischenko" <[EMAIL PROTECTED]> writes:
> Hello,
>
> TurboGears startup.py contains the following code:
>
> isdev = cherrypy.config.get('server.environment') == 'development'
> if isdev:
> # configure logging module to log to sys.stdout
>
> OTOH, there is server.log_to_screen setting.
>
> Shouldn't logging configuration be dependent on that setting instead of
> server.environment?
>
> After all, it's a bit confusing when I set server.log_to_screen to False and
> server.environment is 'development' and I still see the log on the console.
Maybe an "AND" for the environment but with an obligatory setup for the config
option.
--
Jorge Godoy <[EMAIL PROTECTED]>