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

Jiang, Yunhong yunhong.jiang at intel.com
Tue Nov 13 11:00:10 UTC 2012


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.

Thanks
--jyh



More information about the OpenStack-dev mailing list