
On Tue, Sep 5, 2017 at 7:39 AM, Roy Golan <rgolan@redhat.com> wrote:
This might help you Bug 1479301 - [RFE] Add elapsed times of operations to the engine.log
On Tue, 5 Sep 2017 at 06:29 pengyixiang <yxpengi386@163.com> wrote:
hello, everyone! 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:
455 @api.method 456 def hotplugDisk(self, params): 457 syslog.syslog("---in VM hotplugDisk") 458 syslog.syslog("params:%s" % (params)) 459 try: 460 utils.validateMinimalKeySet(params, ('vmId', 'drive')) 461 except ValueError: 462 self.log.error('Missing one of required parameters: vmId, drive') 463 return {'status': {'code': errCode['MissParam']['status']['code'], 464 'message': 'Missing one of required ' 465 'parameters: vmId, drive'}} 466 return self.vm.hotplugDisk(params)
but the number of api method is too much, where should I add is better to print called api method name and params?
I think you are looking for this [1] in vdsm or this [2] in the engine. It is enough to increase log level on both sides. [1] https://github.com/oVirt/vdsm/blob/master/lib/yajsonrpc/__init__.py#L646 [2] https://github.com/oVirt/vdsm-jsonrpc-java/blob/master/client/src/main/java/...
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel