mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
Python daemons: Changed log date time format.
Changed the python daemons log date and time format to keep similar as C binaries logging format. The date time is in UTC. Signed-off-by: Arun Sharma <arun.sharma@calsoftinc.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -60,7 +60,7 @@ class Vlog:
|
||||
if not Vlog.__inited:
|
||||
return
|
||||
|
||||
now = datetime.datetime.now().strftime("%b %d %H:%M:%S")
|
||||
now = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
message = ("%s|%s|%s|%s|%s"
|
||||
% (now, Vlog.__msg_num, self.name, level, message))
|
||||
|
||||
|
Reference in New Issue
Block a user