Maor Lipchuk has uploaded a new change for review.
Change subject: vdsm: Add log to sourceRouteThread
......................................................................
vdsm: Add log to sourceRouteThread
Adding a log for sourceRouteThread so the log
will also contain the module name.
Change-Id: I34c73757a0dd4523ded40e8424ed12480ca61727
Signed-off-by: Maor Lipchuk <mlipchuk(a)redhat.com>
---
M vdsm/sourceRouteThread.py
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/14/22814/1
diff --git a/vdsm/sourceRouteThread.py b/vdsm/sourceRouteThread.py
index c913220..8de9d8a 100644
--- a/vdsm/sourceRouteThread.py
+++ b/vdsm/sourceRouteThread.py
@@ -13,8 +13,9 @@
class DHClientEventHandler(pyinotify.ProcessEvent):
+ log = logging.getLogger('vdsm.DHClientEventHandler')
def process_IN_CLOSE_WRITE_filePath(self, sourceRouteFilePath):
- logging.debug("Responding to DHCP response in %s" %
+ self.log.debug("Responding to DHCP response in %s" %
sourceRouteFilePath)
with open(sourceRouteFilePath, 'r') as sourceRouteFile:
sourceRouteContents = sourceRouteFile.read().split()
@@ -31,7 +32,7 @@
else:
sourceRoute.remove()
else:
- logging.info("interface %s is not a libvirt interface" %
+ self.log.info("interface %s is not a libvirt interface" %
sourceRoute.device)
DynamicSourceRoute.removeInterfaceTracking(device)
@@ -43,7 +44,7 @@
def subscribeToInotifyLoop():
- logging.debug("sourceRouteThread.subscribeToInotifyLoop started")
+ self.log.debug("sourceRouteThread.subscribeToInotifyLoop started")
# Subscribe to pyinotify event
watchManager = pyinotify.WatchManager()
--
To view, visit
http://gerrit.ovirt.org/22814
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I34c73757a0dd4523ded40e8424ed12480ca61727
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk(a)redhat.com>