[mod] use more classical datetime format for logs

This commit is contained in:
Laurent Peuch 2016-06-24 10:00:14 +02:00
parent 6cb179703e
commit 19a29d9b34

View file

@ -104,7 +104,7 @@ class Journal(object):
self._do_first_write() self._do_first_write()
self.first_write = False self.first_write = False
self.fd.write("%s: " % datetime.now().strftime("%F_%X").replace(":", "-")) self.fd.write("%s: " % datetime.now().strftime("%F %X"))
self.fd.write(line.rstrip()) self.fd.write(line.rstrip())
self.fd.write("\n") self.fd.write("\n")
self.fd.flush() self.fd.flush()