mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
Add log level env var
This commit is contained in:
parent
2cca26ada4
commit
b34d981723
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@ if TYPE_CHECKING:
|
|||
from requests import Response
|
||||
|
||||
|
||||
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
logging.getLogger().setLevel(LOG_LEVEL)
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ENV_DEV = "ESPHOME_DASHBOARD_DEV"
|
||||
|
|
Loading…
Reference in a new issue