Skip to content

Commit

Permalink
Add some cache read debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Dec 29, 2024
1 parent e69f4b0 commit 4ad8f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lazy_github/ui/widgets/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from textual.widgets import DataTable, Footer, Input
from textual.widgets.data_table import RowDoesNotExist

from lazy_github.lib.logging import lg
from lazy_github.lib.bindings import LazyGithubBindings
from lazy_github.lib.cache import load_models_from_cache, save_models_to_cache
from lazy_github.lib.context import LazyGithubContext
Expand Down Expand Up @@ -116,6 +117,8 @@ def initialize_from_cache(self, expect_type: type[T]) -> None:
if not self.cache_name:
return

lg.debug(f"Reading values of type '{expect_type.__name__}' from '{self.cache_name}' cache")

cached_models = load_models_from_cache(
LazyGithubContext.current_repo if self.repo_based_cache else None,
self.cache_name,
Expand Down

0 comments on commit 4ad8f8e

Please sign in to comment.