Change in ovirt-engine-sdk[master]: Add support for debug log file
juan.hernandez at redhat.com
juan.hernandez at redhat.com
Wed Mar 9 14:11:29 UTC 2016
Juan Hernandez has submitted this change and it was merged.
Change subject: Add support for debug log file
......................................................................
Add support for debug log file
Currently when the debug mode is enabled the SDK writes the debug output
to stdout. This isn't convenient for applications that need to write
other things to stdout. This patch adds a new "log" parameter to the
constructor of the connection. This parameter can contain a file name or
an IO object. If it contains a file name the file will be created if
needed, and the debug output will be added to the end of the file. If it
contains an IO object then the debug output will be written directly to
that IO object.
Change-Id: I0abd38f103290b23df193052a6fab42843cc2928
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M sdk/lib/ovirtsdk4/http.py
1 file changed, 24 insertions(+), 3 deletions(-)
Approvals:
Sandro Bonazzola: Looks good to me, but someone else must approve
Juan Hernandez: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
Rafael Martins: Looks good to me, but someone else must approve
--
To view, visit https://gerrit.ovirt.org/54549
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0abd38f103290b23df193052a6fab42843cc2928
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Rafael Martins <rmartins at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
More information about the Engine-commits
mailing list