]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: set log date format 29297/head
authorChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 25 Jul 2019 00:53:37 +0000 (08:53 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 25 Jul 2019 01:39:19 +0000 (09:39 +0800)
Set datefmt parameter to track the log information
%F Equivalent to %Y-%m-%d
%T Equivalent to "%H:%M:%S"

Signed-off-by: Robert Church <robert.church@windriver.com>
Reviewed-by: Changcheng Liu <changcheng.liu@aliyun.com>
qa/standalone/special/ceph_objectstore_tool.py

index a17102e1659487bd142d611cb8b795be672583d3..8c02e8377625b1464c085e461f34f478a6eba023 100755 (executable)
@@ -38,7 +38,8 @@ try:
 except ImportError:
     DEVNULL = open(os.devnull, "wb")
 
-logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.WARNING)
+logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.WARNING,
+                    datefmt="%FT%T")
 
 
 if sys.version_info[0] >= 3: