mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
Init colorama in ESPHome main (#5111)
This commit is contained in:
parent
efd0dd4c3d
commit
80154b280e
1 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,8 @@ def setup_log(
|
|||
) -> None:
|
||||
import colorama
|
||||
|
||||
colorama.init()
|
||||
|
||||
if debug:
|
||||
log_level = logging.DEBUG
|
||||
CORE.verbose = True
|
||||
|
@ -82,7 +84,6 @@ def setup_log(
|
|||
|
||||
logging.getLogger("urllib3").setLevel(logging.WARNING)
|
||||
|
||||
colorama.init()
|
||||
logging.getLogger().handlers[0].setFormatter(
|
||||
ESPHomeLogFormatter(include_timestamp=include_timestamp)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue