Skip to content

Commit

Permalink
updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakudum committed Jan 27, 2024
1 parent c6db221 commit 1beaeb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/jarklin/cache/_cache_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"""
import logging
import shutil
import functools
import typing as t
from pathlib import Path
from abc import abstractmethod
from functools import cached_property
from configlib import ConfigInterface
from ..common.types import PathSource

Expand All @@ -20,8 +20,9 @@ def __init__(self, source: PathSource, dest: PathSource, config: ConfigInterface
self.dest = Path(dest)
self.config = config

@functools.cache
def __repr__(self):
return f"<{type(self).__name__}: {self.source!s}>"
return f"<{type(self).__name__}: {self.source.relative_to(Path.cwd())!s}>"

@t.final
def generate(self) -> None:
Expand Down Expand Up @@ -65,7 +66,7 @@ def generate_type(self) -> None: ...
def cleanup(self) -> None:
pass

@cached_property
@functools.cached_property
def previews_dir(self) -> Path:
path = self.dest.joinpath("previews")
path.mkdir(parents=True, exist_ok=True)
Expand Down
2 changes: 1 addition & 1 deletion src/jarklin/common/dot_ignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ def ignored(self, path: PathResource) -> bool:
is_ignored = False
else:
is_ignored = True
logging.debug(f"{path!s} is {'' if is_ignored else 'not '}ignored")
# logging.debug(f"{path!s} is {'' if is_ignored else 'not '}ignored")
return is_ignored

0 comments on commit 1beaeb8

Please sign in to comment.