commit | 71d887d2e3836649b650939ee3c1e6e91cde16e2 | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Sat Dec 22 17:05:13 2012 -0800 |
committer | Rich Lane <rich.lane@bigswitch.com> | Sat Dec 22 17:05:13 2012 -0800 |
tree | 408c152cd1b3b59b0199afb21ff9b271686b7fb1 | |
parent | 82ef183784dfddd4fc790ea50fe7d04ea149d86f [diff] |
include milliseconds in log timestamps
diff --git a/oft b/oft index 1f28784..6d1dfa9 100755 --- a/oft +++ b/oft
@@ -316,7 +316,7 @@ """ Set up logging based on config """ - _format = "%(asctime)s %(name)-10s: %(levelname)-8s: %(message)s" + _format = "%(asctime)s.%(msecs)d %(name)-10s: %(levelname)-8s: %(message)s" _datefmt = "%H:%M:%S" _mode = config["log_append"] and "a" or "w" logging.basicConfig(filename=config["log_file"],