Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Jan 19, 2024
1 parent d3cc397 commit 67014b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecowitt2mqtt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import colorlog

from ecowitt2mqtt.config import ConfigError, Configs
from ecowitt2mqtt.const import LEGACY_ENV_LOG_LEVEL, LOGGER, __version__
from ecowitt2mqtt.const import LOGGER, __version__
from ecowitt2mqtt.runtime import Runtime


Expand All @@ -19,7 +19,7 @@ def configure_logging(verbose: bool) -> None:
Args:
verbose: Whether verbose logging should be included.
"""
if verbose or os.getenv(LEGACY_ENV_LOG_LEVEL):
if verbose:
log_level = logging.DEBUG
else:
log_level = logging.INFO
Expand Down

0 comments on commit 67014b7

Please sign in to comment.