Commit 830cd5f2 authored by Kirill Smelkov's avatar Kirill Smelkov

X wcfs: py: log with data and time present

So that we can correlage py log with go log.

Tried to mimic glog format output, but it is not exactly the same currently
parent 135a548f
......@@ -735,7 +735,10 @@ def main():
# setup log.warn/error to go to stderr, so that details could be seen on
# e.g. "fuse_unmount: ... failed (more details logged)"
logging.basicConfig(stream=sys.stderr, level=logging.WARNING)
logging.basicConfig(stream=sys.stderr, level=logging.WARNING,
# FIXME -> LMMDD hh:mm:ss.ssssss tid file:line]
format="%(levelname)s %(asctime)s %(process)d %(filename)s:%(lineno)d] %(name)s: %(message)s",
datefmt="%m%d %H:%M:%S")
if cmd == "serve":
if argv[0] == '-h':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment