diff --git a/crmsh/corosync.py b/crmsh/corosync.py index ff22814817..9c67564625 100644 --- a/crmsh/corosync.py +++ b/crmsh/corosync.py @@ -38,7 +38,7 @@ to_logfile: yes logfile: /var/log/cluster/corosync.log to_syslog: yes - timestamp: on + timestamp: hires } """ KNET_LINK_NUM_LIMIT = 8 diff --git a/crmsh/log.py b/crmsh/log.py index 2aca84ace9..81e26962a6 100644 --- a/crmsh/log.py +++ b/crmsh/log.py @@ -215,8 +215,8 @@ def _open(self): }, }, "file": { - "format": "%(asctime)s {} %(name)s: %(levelname)s: %(message)s".format(socket.gethostname()), - "datefmt": "%Y-%m-%dT%H:%M:%S%z", + "format": "%(asctime)s.%(msecs)03d {} %(name)s: %(levelname)s: %(message)s".format(socket.gethostname()), + "datefmt": "%b %d %H:%M:%S", } }, "filters": {