Change in ovirt-engine-sdk[sdk_4.0]: Use Python logging

Ondra Machacek has submitted this change and it was merged. Change subject: Use Python logging ...................................................................... Use Python logging Currently the SDK writes its debug output directly to a file. This isn't convenient when he SDK is integrated into other applications that use the standard Python "logging" module. To simplify that integration this patch changes the SDK so that it uses the "logging" module. Change-Id: Ifeefb5b4b75d5afb78149df0579493b8b2618538 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> (cherry picked from commit 3c9e04be88c069aad28f59f857500b2b55a5f9ce) --- M sdk/examples/add_cluster.py M sdk/examples/add_data_center.py M sdk/examples/add_host.py M sdk/examples/add_nfs_data_storage_domain.py M sdk/examples/add_nfs_iso_storage_domain.py M sdk/examples/add_vm.py M sdk/examples/add_vm_disk.py M sdk/examples/add_vm_nic.py M sdk/examples/add_vm_snapshot.py M sdk/examples/attach_nfs_data_storage_domain.py M sdk/examples/attach_nfs_iso_storage_domain.py M sdk/examples/connection_builder.py M sdk/examples/enable_compression.py M sdk/examples/follow_vm_links.py M sdk/examples/list_vm_disks.py M sdk/examples/list_vms.py M sdk/examples/page_vms.py M sdk/examples/remove_host.py M sdk/examples/remove_vm.py M sdk/examples/search_vms.py M sdk/examples/set_vm_serial_number.py M sdk/examples/show_summary.py M sdk/examples/start_vm.py M sdk/examples/stop_vm.py M sdk/examples/test_connection.py M sdk/examples/update_data_center.py M sdk/lib/ovirtsdk4/__init__.py M sdk/tests/test_connection_create.py 28 files changed, 132 insertions(+), 50 deletions(-) Approvals: Ondra Machacek: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/61670 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifeefb5b4b75d5afb78149df0579493b8b2618538 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: sdk_4.0 Gerrit-Owner: Ondra Machacek <omachace@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Ondra Machacek <omachace@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
omachace@redhat.com