<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 6:14 AM, pengyixiang <span dir="ltr">&lt;<a href="mailto:yxpengi386@163.com" target="_blank">yxpengi386@163.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hello, everyone!</div><div>    We need to customed ovirt, and now I need to know which api been called and transport&#39;s params after button been pushed in engine, I try to add logs like this in vdsm:</div></div></blockquote><div><br></div><div>Can you explain what you are trying to achieve? What customization are you looking for?</div><div>It&#39;d be great if you can contribute your changes so the community can benefit from them.</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><br></div><div> 455     @api.method<br> 456     def hotplugDisk(self, params):<br> 457         syslog.syslog(&quot;---in VM hotplugDisk&quot;)<br> 458         syslog.syslog(&quot;params:%s&quot; % (params))<br> 459         try:<br> 460             utils.validateMinimalKeySet(<wbr>params, (&#39;vmId&#39;, &#39;drive&#39;))<br> 461         except ValueError:<br> 462             self.log.error(&#39;Missing one of required parameters: vmId, drive&#39;)<br> 463             return {&#39;status&#39;: {&#39;code&#39;: errCode[&#39;MissParam&#39;][&#39;status&#39;]<wbr>[&#39;code&#39;],<br> 464                          <wbr>      &#39;message&#39;: &#39;Missing one of required &#39;<br> 465                          <wbr>                 &#39;parameters: vmId, drive&#39;}}<br> 466         return self.vm.hotplugDisk(params)</div><div><br></div><div>but the number of api method is too much,  where should I add is better to print called api method name and params?<br></div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br></blockquote></div><br></div></div>