Compare commits
2 commits
4aa7aa8577
...
c9b76190f0
Author | SHA1 | Date | |
---|---|---|---|
|
c9b76190f0 | ||
|
c6c4ba5a48 |
3 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||
|
||||
[project]
|
||||
name = "wallman"
|
||||
version = "1.3.3.1"
|
||||
version = "1.3.3.2"
|
||||
authors = [
|
||||
{name = "Emma Nora Theuer", email = "wallman@entheuer.de"},
|
||||
]
|
||||
|
|
|
@ -6,7 +6,7 @@ used_sets = ["anime", "nature"]
|
|||
wallpapers_per_set = 5
|
||||
notify = False
|
||||
fallback_wallpaper = "/path/to/paper"
|
||||
loglevel = "WARNING"
|
||||
loglevel = "INFO"
|
||||
|
||||
# Enter the hours at which you want the wallpaper to change.
|
||||
# If the script is called between one of this times, it will go back to the previous time.
|
||||
|
|
|
@ -30,7 +30,7 @@ class _ConfigLib:
|
|||
self.config_used_sets: list = self.config_general["used_sets"]
|
||||
self.config_wallpapers_per_set: int = self.config_general["wallpapers_per_set"]
|
||||
self.config_total_changing_times: int = len(self.config_changing_times)
|
||||
self.config_log_level: str = self.config_general.get("loglevel", "WARNING").upper()
|
||||
self.config_log_level: str = self.config_general.get("loglevel", "INFO").upper()
|
||||
try:
|
||||
self.config_notify: bool = self.config_general["notify"]
|
||||
except KeyError:
|
||||
|
@ -44,7 +44,7 @@ class _ConfigLib:
|
|||
global logging
|
||||
global logger
|
||||
chdir(str(getenv("HOME")) + "/.local/share/wallman/")
|
||||
numeric_level = getattr(logging, self.config_log_level, logging.WARNING)
|
||||
numeric_level = getattr(logging, self.config_log_level, logging.INFO)
|
||||
logger.setLevel(numeric_level)
|
||||
logging.basicConfig(filename="wallman.log", encoding="utf-8", level=numeric_level)
|
||||
|
||||
|
|
Loading…
Reference in a new issue