[openstack-dev] [ceilometer] Error "No handler could be found for logger "stevedore.extension""
Doug Hellmann
doug.hellmann at dreamhost.com
Tue Nov 13 16:12:03 UTC 2012
On Tue, Nov 13, 2012 at 6:00 AM, Jiang, Yunhong <yunhong.jiang at intel.com>wrote:
> Hi, Doug and others:
>
> When I debug my pollster code, I noticed that if there is bug in
> my pollster, I will get error information of " No handler could be found
> for logger "stevedore.extension", while I assume there should be a stack
> printed out.
>
> Although this should be ok in production environment since
> stevedore.extension seems only LOG above >= warn in exception situation,
> but it's inconvenient in development stage.
>
> After checking code in stevedore.extension, seems it create logger
> project, but without any configuration of it, thus all invocation of the
> logger in the exception will get error according to
> http://docs.python.org/2/howto/logging.html#what-happens-if-no-configuration-is-provided
>
> IMHO the _load_plugins() in stevestore.extension should not handle
> the exception, instead, the caller should do that.
>
Is it actually an exception, or is it just the logging module reporting a
warning?
In either case, I opened a bug (
https://github.com/dreamhost/stevedore/issues/2) to address this in
stevedore.
Doug
>
> Thanks
> --jyh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121113/f37697ec/attachment.html>
More information about the OpenStack-dev
mailing list