[openstack-dev] [ceilometer] Error "No handler could be found for logger "stevedore.extension""

Doug Hellmann doug.hellmann at dreamhost.com
Wed Nov 14 14:48:08 UTC 2012


On Tue, Nov 13, 2012 at 9:25 PM, Jiang, Yunhong <yunhong.jiang at intel.com>wrote:

> > Part of the point of stevedore is to make it so the caller doesn't have
> to worry
> > about that sort of thing. An exception is raised if no plugins can be
> loaded, but
> > otherwise individual plugins shouldn't cause errors.
> >
> > Doug
>
> Yes, this is a good choice to reduce caller's overhead. My only concern
> is, if for some special reason, some plugin failed to be loaded in
> production environment, it will be difficult to debug since there will be
> no stacktrace in the log, but possibly it's acceptable.
>

The call to LOG.exception() reports a stack trace.
https://github.com/dreamhost/stevedore/blob/master/stevedore/extension.py#L75


>
> Also I think we can add a DEBUG information on the
> ceilometer/extension_manager.py, ActivatedExtensionManager(), to print all
> plug-ins loaded successfully, to be more user friendly. Any idea?
>

Stevedore is already logging the plugins it finds.
https://github.com/dreamhost/stevedore/blob/master/stevedore/extension.py#L62


>
> Thanks
> --jyh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121114/bd769d3c/attachment.html>


More information about the OpenStack-dev mailing list