mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
Change logging system to make it easier to get results from scheduled
task
This commit is contained in:
parent
fa08d92cf7
commit
f3ee0e19ff
7 changed files with 26 additions and 15 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue