From 34d6a264e46205b77c969d598a49e22f55373342 Mon Sep 17 00:00:00 2001 From: Fry Date: Fri, 15 Nov 2024 12:48:28 +1100 Subject: [PATCH] Change logging level on errors --- turbinia/workers/analysis/yara.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/turbinia/workers/analysis/yara.py b/turbinia/workers/analysis/yara.py index 081a939c7..272885a2f 100644 --- a/turbinia/workers/analysis/yara.py +++ b/turbinia/workers/analysis/yara.py @@ -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