Skip to content

Commit

Permalink
Change logging level on errors (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryyyyy authored Nov 15, 2024
1 parent 26cd07e commit c010541
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions turbinia/workers/analysis/yara.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,16 @@ def update_rules(self, rules):
repository = git.Repo(path)
origin = repository.remotes.origin
origin.pull(depth=1)
log.debug('Successfully updated rules from %s in %s', repo, path)
log.info('Successfully updated rules from %s in %s', repo, path)
except git.exc.InvalidGitRepositoryError as e:
log.debug(
'InvalidGitRepositoryError updating rules in %s: %s', path, str(e))
log.error(
'InvalidGitRepositoryError updating rules in %s: %s', path, str(e),
exc_info=True)
return False
except Exception as e:
log.debug('Unknown error updating rules in %s: %s', path, str(e))
log.error(
'Unknown error updating rules in %s: %s', path, str(e),
exc_info=True)
return False

return True
Expand Down

0 comments on commit c010541

Please sign in to comment.