[ckan-dev] lib/cli.py and imports

Toby Dacre toby.okfn at gmail.com
Mon Feb 18 09:12:45 UTC 2013


David,

Thanks for the info

Toby

On 16 February 2013 09:50, David Read <david.read at hackneyworkshop.com>wrote:

> This is a well known pylons issue with logging config.
>
> If you create a logger before it is configured, you end up with
> log.disabled=1
>
> > I think this may be an old problem that has been fixed by code cleanups
> that
> > have occurred - at least if I import ckan.model as model in the top of
> the
> > file all seems to work as expected as well as logging happening - in at
> > least some places.
>
> Model doesn't have much logging anyway. But you'll be aware that many
> imports start a cascade of imports, creating log objects, all with
> disabled=1 unless configuration is configured.
>
> David
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130218/ce13a3fc/attachment-0001.html>


More information about the ckan-dev mailing list