aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar Oliver Chang <oliverchang@users.noreply.github.com>2021-11-02 16:50:59 +1100
committerGravatar GitHub <noreply@github.com>2021-11-02 16:50:59 +1100
commitef0e5413c962f1c91771effd160f9c583ef0bea6 (patch)
tree7620238c4f6f98394b79ec27db2993284d4ecde0 /infra
parente9109e929b69a6bbb838470c1b8b6180e41a904f (diff)
CFLite: Logging fixes. (#6715)
Don't output stacktrace again in detected bug log message. Disable Python buffering to avoid log interleaving issues.
Diffstat (limited to 'infra')
-rw-r--r--infra/cifuzz/cifuzz-base/Dockerfile2
-rw-r--r--infra/cifuzz/fuzz_target.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/infra/cifuzz/cifuzz-base/Dockerfile b/infra/cifuzz/cifuzz-base/Dockerfile
index 66fd6b51..096d2b64 100644
--- a/infra/cifuzz/cifuzz-base/Dockerfile
+++ b/infra/cifuzz/cifuzz-base/Dockerfile
@@ -40,6 +40,8 @@ RUN python3 -m pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
ADD . ${OSS_FUZZ_ROOT}
RUN npm install ${OSS_FUZZ_ROOT}/infra/cifuzz
+ENV PYTHONUNBUFFERED=1
+
# Python file to execute when the docker container starts up.
# We can't use the env var $OSS_FUZZ_ROOT here. Since it's a constant env var,
# just expand to '/opt/oss-fuzz'.
diff --git a/infra/cifuzz/fuzz_target.py b/infra/cifuzz/fuzz_target.py
index 8c62a64a..27b969d3 100644
--- a/infra/cifuzz/fuzz_target.py
+++ b/infra/cifuzz/fuzz_target.py
@@ -177,8 +177,7 @@ class FuzzTarget: # pylint: disable=too-many-instance-attributes
# Only report first crash.
crash = result.crashes[0]
- logging.info('Fuzzer: %s. Detected bug:\n%s', self.target_name,
- crash.stacktrace)
+ logging.info('Fuzzer: %s. Detected bug.', self.target_name)
if self.is_crash_reportable(crash.input_path):
# We found a bug in the fuzz target and we will report it.