search for: stdio_handl

Displaying 1 result from an estimated 1 matches for "stdio_handl".

Did you mean: stdio_handler
2017 Aug 07
1
Avoiding console prints by Libvirt Qemu python APIs
...aying "*Domain not found*". I need the errors or logs only in syslog. I have tried redirecting stderr and stdout. But, it doesn't have any effect. I have also tried playing around with the libvirt logging settings described in https://libvirt.org/logging.html . No effect again. "stdio_handler" flag in /etc/libvirt/qemu.conf is set to "file" as well. Following is my test code: import os, sysimport libvirt conn = libvirt.open('qemu:///system') # Find the application in the virsh domaintry: sys.stdout = open(os.devnull, "w") sys.stderr = open(os...