<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"><<a href="mailto:yxpengi386@163.com" target="_blank">yxpengi386@163.com</a>></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'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'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("---in VM hotplugDisk")<br> 458 syslog.syslog("params:%s" % (params))<br> 459 try:<br> 460 utils.validateMinimalKeySet(<wbr>params, ('vmId', 'drive'))<br> 461 except ValueError:<br> 462 self.log.error('Missing one of required parameters: vmId, drive')<br> 463 return {'status': {'code': errCode['MissParam']['status']<wbr>['code'],<br> 464 <wbr> 'message': 'Missing one of required '<br> 465 <wbr> 'parameters: vmId, drive'}}<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>