git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vlog: Fix formatting of milliseconds in Python log messages.
[sliver-openvswitch.git]
/
python
/
ovs
/
vlog.py
diff --git
a/python/ovs/vlog.py
b/python/ovs/vlog.py
index
14679d9
..
8447c0c
100644
(file)
--- a/
python/ovs/vlog.py
+++ b/
python/ovs/vlog.py
@@
-1,5
+1,5
@@
-# Copyright (c) 2011, 2012 Nicira, Inc.
+# Copyright (c) 2011, 2012
, 2013
Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-61,7
+61,7
@@
class Vlog:
return
dt = datetime.datetime.utcnow();
return
dt = datetime.datetime.utcnow();
- now = dt.strftime("%Y-%m-%dT%H:%M:%S.%%iZ") % (dt.microsecond/1000)
+ now = dt.strftime("%Y-%m-%dT%H:%M:%S.%%
03
iZ") % (dt.microsecond/1000)
syslog_message = ("%s|%s|%s|%s"
% (Vlog.__msg_num, self.name, level, message))
syslog_message = ("%s|%s|%s|%s"
% (Vlog.__msg_num, self.name, level, message))