Change in ovirt-engine-sdk-ruby[master]: Add support for debug log file

juan.hernandez at redhat.com juan.hernandez at redhat.com
Tue Mar 1 21:19:02 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: I80e61eb6585ba9f31e95c41ac99615a0681ba2e9
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M sdk/lib/ovirt/sdk/v4/connection.rb
M sdk/spec/connection_spec.rb
2 files changed, 65 insertions(+), 3 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/54230
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I80e61eb6585ba9f31e95c41ac99615a0681ba2e9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-ruby
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: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list