Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Oct 9, 2023
1 parent 0671ae0 commit d0b1f25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions etc/dbus-serialbattery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ def _get_list_from_config(


# Constants
DRIVER_VERSION = "1.0.20231009dev"
DRIVER_VERSION = "1.0.20231010dev"
zero_char = chr(48)
degree_sign = "\N{DEGREE SIGN}"

# get logging level from config file
if config["DEFAULT"]["LOGGING"] == "ERROR":
logging.basicConfig(level=logging.ERROR)
logger.setLevel(logging.ERROR)
elif config["DEFAULT"]["LOGGING"] == "WARNING":
logging.basicConfig(level=logging.WARNING)
logger.setLevel(logging.WARNING)
elif config["DEFAULT"]["LOGGING"] == "DEBUG":
logging.basicConfig(level=logging.DEBUG)
logger.setLevel(logging.DEBUG)
else:
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)

# save config values to constants

Expand Down

0 comments on commit d0b1f25

Please sign in to comment.