Change in vdsm[ovirt-3.5]: restore-net-config: set main thread name

ibarkan at redhat.com ibarkan at redhat.com
Thu Jul 30 14:27:37 UTC 2015


Hello Dan Kenigsberg,

I'd like you to do a code review.  Please visit

    https://gerrit.ovirt.org/44199

to review the following change.

Change subject: restore-net-config: set main thread name
......................................................................

restore-net-config: set main thread name

restore-net-config's log flow to supervdsm.log, and are a bit hard to
discern.

Change-Id: I7a92962e488e78e57697b6313463c41f63408502
Signed-off-by: Dan Kenigsberg <danken at redhat.com>
Reviewed-on: http://gerrit.ovirt.org/37419
Reviewed-by: Ido Barkan <ibarkan at redhat.com>
Bug-Url: https://bugzilla.redhat.com/1203422
Signed-off-by: Ido Barkan <ibarkan at redhat.com>
---
M vdsm/vdsm-restore-net-config
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/99/44199/1

diff --git a/vdsm/vdsm-restore-net-config b/vdsm/vdsm-restore-net-config
index c879442..078cf6b 100755
--- a/vdsm/vdsm-restore-net-config
+++ b/vdsm/vdsm-restore-net-config
@@ -24,6 +24,7 @@
 import logging.config
 import os
 import re
+import threading
 import time
 import errno
 
@@ -318,6 +319,7 @@
 
 
 if __name__ == '__main__':
+    threading.current_thread().setName('restore-net')
     try:
         logging.config.fileConfig('/etc/vdsm/svdsm.logger.conf',
                                   disable_existing_loggers=False)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a92962e488e78e57697b6313463c41f63408502
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Ido Barkan <ibarkan at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>


More information about the vdsm-patches mailing list