Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz authored Aug 26, 2024
1 parent 6e000c6 commit 8b87a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion capa/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,5 +351,4 @@ def ts_to_str(ts):
)
return False

logger.debug("no potentially outdated cache files found, cache can be used")
return True
2 changes: 2 additions & 0 deletions capa/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ def get_rules_from_cli(args) -> RuleSet:
enable_cache = capa.helpers.is_cache_newer_than_rule_code(cache_dir)
if not enable_cache:
logger.debug("not using cache. delete the cache file manually to use rule caching again")
else:
logger.debug("cache can be used, no potentially outdated cache files found")

rules = capa.rules.get_rules(args.rules, cache_dir=cache_dir, enable_cache=enable_cache)
except (IOError, capa.rules.InvalidRule, capa.rules.InvalidRuleSet) as e:
Expand Down

0 comments on commit 8b87a0f

Please sign in to comment.