mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +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:
parent
3123c8fda5
commit
969e46a224
4
NEWS
4
NEWS
@ -20,8 +20,8 @@ post-v1.7.0
|
|||||||
- Open vSwitch now sends RARP packets in situations where it previously
|
- Open vSwitch now sends RARP packets in situations where it previously
|
||||||
sent a custom protocol, making it consistent with behavior of QEMU and
|
sent a custom protocol, making it consistent with behavior of QEMU and
|
||||||
VMware.
|
VMware.
|
||||||
- "ovsdb-tool show-log" and the --timestamp options on ovsdb-client and
|
- All Open vSwitch programs and log files now show timestamps in UTC,
|
||||||
ovs-ofctl now display timestamps in UTC instead of the local timezone.
|
instead the local timezone, by default.
|
||||||
|
|
||||||
|
|
||||||
v1.7.0 - xx xxx xxxx
|
v1.7.0 - xx xxx xxxx
|
||||||
|
@ -60,7 +60,7 @@ class Vlog:
|
|||||||
if not Vlog.__inited:
|
if not Vlog.__inited:
|
||||||
return
|
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"
|
message = ("%s|%s|%s|%s|%s"
|
||||||
% (now, Vlog.__msg_num, self.name, level, message))
|
% (now, Vlog.__msg_num, self.name, level, message))
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ AT_CHECK([$PYTHON $srcdir/test-vlog.py --log-file log_file \
|
|||||||
|
|
||||||
AT_CHECK([diff log_file stderr_log])
|
AT_CHECK([diff log_file stderr_log])
|
||||||
|
|
||||||
AT_CHECK([sed -e 's/.* .* ..:..:..|//' \
|
AT_CHECK([sed -e 's/.*-.*-.*T..:..:..Z|//' \
|
||||||
-e 's/File ".*", line [[0-9]][[0-9]]*,/File <name>, line <number>,/' \
|
-e 's/File ".*", line [[0-9]][[0-9]]*,/File <name>, line <number>,/' \
|
||||||
stderr_log], [0], [dnl
|
stderr_log], [0], [dnl
|
||||||
0|module_0|EMER|emergency
|
0|module_0|EMER|emergency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user