<div dir="ltr">This might help you <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1479301"><b>Bug 1479301</b></a> -<span id="inbox-inbox-summary_alias_container">
<span id="inbox-inbox-short_desc_nonedit_display">[RFE] Add elapsed times of operations to the engine.log<br><br><br></span></span></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 5 Sep 2017 at 06:29 pengyixiang <<a href="mailto:yxpengi386@163.com">yxpengi386@163.com</a>> wrote:<br></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>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><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(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']['code'],<br> 464 'message': 'Missing one of required '<br> 465 '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>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a></blockquote></div>