Compare commits

..

No commits in common. "7f3b643139d9389defd3e8fe30bea587e813f2ac" and "c70651f0760517631104e3a1c356964050398427" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "wallman" name = "wallman"
version = "1.5.1.1" version = "1.5.0.1"
authors = [ authors = [
{name = "Emma Nora Theuer", email = "wallman@entheuer.de"}, {name = "Emma Nora Theuer", email = "wallman@entheuer.de"},
] ]

View file

@ -1,5 +1,5 @@
from sys import exit from sys import exit
from os import chdir, getenv, system, path from os import chdir, getenv, system
import logging import logging
import tomllib import tomllib
from datetime import datetime, time from datetime import datetime, time
@ -72,8 +72,6 @@ class _ConfigLib:
chdir("/var/log/wallman/") chdir("/var/log/wallman/")
numeric_level: int = getattr(logging, self.config_log_level, logging.INFO) numeric_level: int = getattr(logging, self.config_log_level, logging.INFO)
logger.setLevel(numeric_level) logger.setLevel(numeric_level)
if not path.exists("wallman.log"):
system("touch wallman.log")
logging.basicConfig(filename="wallman.log", encoding="utf-8", level=numeric_level) logging.basicConfig(filename="wallman.log", encoding="utf-8", level=numeric_level)
# TODO: Make this all just work inside the try/except block, there is no need for get() # TODO: Make this all just work inside the try/except block, there is no need for get()