mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
vlog: Use python 2.4 compatible functions.
Xenserver uses python 2.4. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user