Skip to content

Commit

Permalink
vlog: Use python 2.4 compatible functions.
Browse files Browse the repository at this point in the history
Xenserver uses python 2.4.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed May 5, 2014
1 parent 696d1bc commit dde7b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ovs/vlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ def _build_message(self, message, facility, level, msg_num):
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:
Expand Down

0 comments on commit dde7b5c

Please sign in to comment.