Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drakrun: Silence benign errors #606

Merged
merged 1 commit into from
Aug 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions drakrun/drakrun/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ def analyze_sample(self, sample_path, workdir, outdir, start_command, timeout):

if e.returncode == INJECTION_UNSUCCESSFUL:
self.log_startup_failure(drakmon_log_fp)
raise e
else:
# Something bad happened
raise e
except subprocess.TimeoutExpired as e:
self.log.exception("DRAKVUF timeout expired")
raise e
Expand Down Expand Up @@ -712,7 +714,7 @@ def process(self, task: Task):
except Exception:
self.log.exception("Analysis attempt failed. Retrying...")
else:
self.log.error(f"Giving up after {max_attempts} failures...")
self.log.warning(f"Giving up after {max_attempts} failures...")
return

self.log.info("Analysis done. Collecting artifacts...")
Expand Down