Skip to content

Commit

Permalink
added some logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakudum committed Jan 29, 2024
1 parent ce21e9e commit 89f548d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jarklin/cache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ def generate_info():
for generator in generators:
source = generator.source
dest = generator.dest
logging.info(f"Cache: adding {generator}")
if is_deprecated(source=source, dest=dest) or is_incomplete(dest=dest):
logging.info(f"generating {generator}")
logging.info(f"Cache: generating {generator}")
try:
generator.generate()
except Exception as error:
logging.error(f"generation failed ({generator})", exc_info=error)
logging.error(f"Cache: generation failed ({generator})", exc_info=error)
continue
generate_info()
info.append(InfoEntry(
Expand Down

0 comments on commit 89f548d

Please sign in to comment.