]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
logging: Add date to the logfile format
authorAlessandro Astone <ales.astone@gmail.com>
Sun, 24 Aug 2025 14:59:33 +0000 (16:59 +0200)
committerAlessandro Astone <ales.astone@gmail.com>
Sun, 24 Aug 2025 15:01:01 +0000 (17:01 +0200)
tools/helpers/logging.py

index 4b337351b5ccf618ad642b4abc7c0828010e4e83..59627d1635878aecba68bca52620d9403653241e 100644 (file)
@@ -73,7 +73,7 @@ def init(args):
         os.chmod(args.log, 0o644)
         handler = RotatingFileHandler(args.log, maxBytes=5*1024*1024)
         handler.setFormatter(logging.Formatter("(%(process)d) [%(asctime)s] %(message)s",
         os.chmod(args.log, 0o644)
         handler = RotatingFileHandler(args.log, maxBytes=5*1024*1024)
         handler.setFormatter(logging.Formatter("(%(process)d) [%(asctime)s] %(message)s",
-                                      datefmt="%H:%M:%S"))
+                                      datefmt="%a, %d %b %Y %H:%M:%S"))
         root_logger.addHandler(handler)
 
 def disable():
         root_logger.addHandler(handler)
 
 def disable():