[node-patches] Change in ovirt-node[master]: storage: Re-Add logger

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Jan 4 11:09:47 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: storage: Re-Add logger
......................................................................

storage: Re-Add logger

In a previous patch the global logger variable got removed to add all
storage related logging output to the logfile, but this change
introduced some other regressions so we are re-adding the original
behavior.

Change-Id: I1da1a5a7687294dbfa895beff2b1f8f14dd4919a
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirtnode/storage.py
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/51/10651/1

diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index 291da46..9ce97fd 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -27,11 +27,12 @@
 import subprocess
 import shlex
 
+logger = logging.getLogger(__name__)
 
 class Storage:
     def __init__(self):
-        #logger = logging.getLogger(PRODUCT_SHORT)
-        #logger.propagate = False
+        logger = logging.getLogger(_functions.PRODUCT_SHORT)
+        logger.propagate = False
         OVIRT_VARS = _functions.parse_defaults()
         self.overcommit = 0.5
         self.BOOT_SIZE = 50


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1da1a5a7687294dbfa895beff2b1f8f14dd4919a
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