<br><br><div class="gmail_quote">On Tue, Nov 13, 2012 at 9:25 PM, Jiang, Yunhong <span dir="ltr"><<a href="mailto:yunhong.jiang@intel.com" target="_blank">yunhong.jiang@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> Part of the point of stevedore is to make it so the caller doesn't have to worry<br>
> about that sort of thing. An exception is raised if no plugins can be loaded, but<br>
> otherwise individual plugins shouldn't cause errors.<br>
><br>
> Doug<br>
<br>
</div>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.<br>
</blockquote><div><br></div><div>The call to LOG.exception() reports a stack trace. <a href="https://github.com/dreamhost/stevedore/blob/master/stevedore/extension.py#L75">https://github.com/dreamhost/stevedore/blob/master/stevedore/extension.py#L75</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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?<br></blockquote><div><br></div>
<div>Stevedore is already logging the plugins it finds. <a href="https://github.com/dreamhost/stevedore/blob/master/stevedore/extension.py#L62">https://github.com/dreamhost/stevedore/blob/master/stevedore/extension.py#L62</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks<br>
--jyh<br>
</blockquote></div><br>