mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
Fixed logger broken by colorama (#1385)
This commit is contained in:
parent
9d2b0b4e03
commit
e42ce64127
2 changed files with 4 additions and 0 deletions
|
@ -235,6 +235,9 @@ def setup_log(debug=False, quiet=False):
|
|||
logging.getLogger('urllib3').setLevel(logging.WARNING)
|
||||
|
||||
try:
|
||||
import colorama
|
||||
colorama.init(strip=True)
|
||||
|
||||
from colorlog import ColoredFormatter
|
||||
logging.getLogger().handlers[0].setFormatter(ColoredFormatter(
|
||||
colorfmt,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
voluptuous==0.12.0
|
||||
PyYAML==5.3.1
|
||||
paho-mqtt==1.5.1
|
||||
colorama==0.4.4
|
||||
colorlog==4.6.2
|
||||
tornado==6.0.4
|
||||
protobuf==3.13.0
|
||||
|
|
Loading…
Reference in a new issue