mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Add timestamp to ESPHome dashboard/cli logs (#2455)
This commit is contained in:
parent
22e3bc7cfe
commit
d34a1c3ed6
@ -50,7 +50,7 @@ def color(col: str, msg: str, reset: bool = True) -> bool:
|
||||
|
||||
class ESPHomeLogFormatter(logging.Formatter):
|
||||
def __init__(self):
|
||||
super().__init__(fmt="%(levelname)s %(message)s", datefmt="%H:%M:%S", style="%")
|
||||
super().__init__(fmt="%(asctime)s %(levelname)s %(message)s", style="%")
|
||||
|
||||
def format(self, record):
|
||||
formatted = super().format(record)
|
||||
|
Loading…
Reference in New Issue
Block a user