[node-patches] Change in ovirt-node[master]: auto-installer: Add debug mode

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon Jul 15 11:50:54 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: auto-installer: Add debug mode
......................................................................

auto-installer: Add debug mode

Change-Id: I7f1d7bc7da298ed03e27e7ab4d29963076ddb4ec
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-auto-install.py
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/54/16854/1

diff --git a/scripts/ovirt-auto-install.py b/scripts/ovirt-auto-install.py
index b100bb3..5a5e651 100755
--- a/scripts/ovirt-auto-install.py
+++ b/scripts/ovirt-auto-install.py
@@ -26,6 +26,8 @@
 from ovirtnode.log import *
 from ovirtnode.kdump import *
 from ovirt.node.utils.console import TransactionProgress
+import logging
+import sys
 
 
 class ConfigureNetworking(Transaction.Element):
@@ -120,6 +122,9 @@
 
 
 if __name__ == "__main__":
+    if "--debug" in sys.argv:
+        logging.basicConfig(level=logging.DEBUG)
+
     tx = Transaction("Automatic Installation")
 
     # setup network before storage for iscsi installs


-- 
To view, visit http://gerrit.ovirt.org/16854
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f1d7bc7da298ed03e27e7ab4d29963076ddb4ec
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list