Possible mistake in manual

10 views
Skip to first unread message

Dirk Makowski

unread,
Aug 31, 2011, 6:16:13 AM8/31/11
to pylons-...@googlegroups.com
Hi all,

about setting up logging for commandline scripts, the example given does not work. Instead of
import logging
logging.fileConfig('/path/to/my/development.ini')
it should be
import logging.config
logging.config.fileConfig('/path/to/my/development.ini')
At least for Python 2.7, am not sure about previous versions.

Also was not sure whether to post this here or to file an issue for Pyramid on github, because it's not about code. What's you policy for this?

Regards, Dirk

Chris McDonough

unread,
Aug 31, 2011, 12:02:01 PM8/31/11
to pylons-...@googlegroups.com
On Wed, 2011-08-31 at 03:16 -0700, Dirk Makowski wrote:
> Hi all,
>
>
> about setting up logging for commandline scripts, the example given
> does not work. Instead of
> import logging
> logging.fileConfig('/path/to/my/development.ini')
> it should be
> import logging.config
> logging.config.fileConfig('/path/to/my/development.ini')
> At least for Python 2.7, am not sure about previous versions.

I've fixed it:
https://github.com/Pylons/pyramid/commit/6e3025d8d14dde9c442dae4c21bc76e57b452647

> Also was not sure whether to post this here or to file an issue for
> Pyramid on github, because it's not about code. What's you policy for
> this?

In the future, if you're interested in it, and you feel like
contributing, you can just fork the repository and create a pull
request.

Thanks!


Reply all
Reply to author
Forward
0 new messages