mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Add timestamp to ESPHome dashboard/cli logs (#2455)
This commit is contained in:
parent
22e3bc7cfe
commit
d34a1c3ed6
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue