Просмотр исходного кода

feat(flutter): Ensure that the log format is aligned

huangrunheng 3 лет назад
Родитель
Сommit
45f7b95a55
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      module/logger.py

+ 1 - 1
module/logger.py

@@ -170,7 +170,7 @@ file_formatter = logging.Formatter(
 console_formatter = logging.Formatter(
     fmt='%(asctime)s.%(msecs)03d │ %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
 flutter_formatter = logging.Formatter(
-    fmt='%(asctime)s.%(msecs)03d │ %(message)s', datefmt='%H:%M:%S')
+    fmt='| %(asctime)s.%(msecs)03d | %(message)08s', datefmt='%H:%M:%S')
 
 
 # Add rich console logger