Skip to content

Commit

Permalink
Fix log formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Grub4K authored Jun 19, 2024
1 parent 93847d1 commit be74186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vrcar/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

class PrettyFormatter(logging.Formatter):
LOG_FORMAT = (
"{record.asctime}.{record.msecs:03}"
"{record.asctime}.{record.msecs:03.0f}"
" | {record.levelname:<8}"
" | {record.name:<{name_length}}"
" | {record.message}"
)
LOG_FORMAT_COLOR = (
"\x1b[32;1m{record.asctime}.{record.msecs:03}\x1b[0m"
"\x1b[32;1m{record.asctime}.{record.msecs:03.0f}\x1b[0m"
" | {level_color}{record.levelname:<8}\x1b[0m"
" | \x1b[35m{record.name:<{name_length}}\x1b[0m"
" | {record.message}"
Expand Down

0 comments on commit be74186

Please sign in to comment.