mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
Init colorama in ESPHome main (#5111)
This commit is contained in:
parent
efd0dd4c3d
commit
80154b280e
@ -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…
x
Reference in New Issue
Block a user