Change logging system to make it easier to get results from scheduled

task
This commit is contained in:
Kat Inskip 2023-09-08 20:28:09 -07:00
parent fa08d92cf7
commit f3ee0e19ff
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 26 additions and 15 deletions

View file

@ -49,7 +49,7 @@ def add_environment(environment: str) -> callable:
path = frame[0].f_code.co_filename
def wrapper(function):
environment_handlers[environment] = function
logging.info(f"Loaded environment handler {environment} from {path}")
logging.debug(f"Loaded environment handler {environment} from {path}")
return wrapper
"""
@ -65,5 +65,5 @@ def add_source(source: str) -> callable:
path = frame[0].f_code.co_filename
def wrapper(function):
source_handlers[source] = function
logging.info(f"Loaded wallpaper source {source} from {path}")
logging.debug(f"Loaded wallpaper source {source} from {path}")
return wrapper