Skip to content

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
 - Decreased log size
  • Loading branch information
Mefgner committed Jul 13, 2024
1 parent c8a1cce commit 76c90cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def cur_monitor_specs() -> Dict[AnyStr, Dict[AnyStr, SupportsInt]]:


async def load_config() -> Tuple[ScreenSettings, ScreenSettings]:
logging.info(f"Loading config from {PATH_TO_PROGRAM / 'config.json'}")
logging.debug(f"Loading config from {PATH_TO_PROGRAM / 'config.json'}")
with open(PATH_TO_PROGRAM / "config.json", "r") as config:
stream = config.read()

Expand Down Expand Up @@ -174,7 +174,7 @@ async def srr_loop(time_step: int) -> None:
# I think opening config file every second is not a good idea,
# so then I made it in 10 time longer to wait.
if counter == 10:
logging.info(f"Counter now = {counter}, reloading config")
logging.debug(f"Counter now = {counter}, reloading config")
current_config = await load_config()
if prev_config_state != current_config:
ctypes.windll.user32.MessageBoxW(
Expand Down

0 comments on commit 76c90cd

Please sign in to comment.