vlog: Use python 2.4 compatible functions.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 5 May 2014 19:30:48 +0000 (12:30 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 5 May 2014 21:11:08 +0000 (14:11 -0700)
Xenserver uses python 2.4.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
python/ovs/vlog.py

index 580b1bc..1bd42c4 100644 (file)
@@ -107,12 +107,12 @@ class Vlog:
                 ms = delta.microseconds / 1000
                 tmp = self._format_field(tmp, m, str(ms))
             elif "t" in m:
-                subprogram = threading.current_thread().name
+                subprogram = threading.currentThread().getName()
                 if subprogram == "MainThread":
                     subprogram = "main"
                 tmp = self._format_field(tmp, m, subprogram)
             elif "T" in m:
-                subprogram = threading.current_thread().name
+                subprogram = threading.currentThread().getName()
                 if not subprogram == "MainThread":
                     subprogram = "({})".format(subprogram)
                 else: