Skip to content

Commit bb12c83

Browse files
committed
reduce log load
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
1 parent 0b90848 commit bb12c83

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

test/antithesis/deploy/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ RUN --mount=type=cache,target=/tools/target,id=antithesis-tools-target \
9090
# Runtime: Agent Data Plane (SUT).
9191
# ---------------------------------------------------------------------------
9292
FROM ${APP_IMAGE} AS adp
93-
ENV NO_COLOR=1 \
94-
RUST_BACKTRACE=1
93+
ENV NO_COLOR=1
9594
RUN apt-get update && \
9695
apt-get install --no-install-recommends -y ca-certificates openssl && \
9796
rm -rf /var/lib/apt/lists/*

test/antithesis/deploy/docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ services:
3333
command: ["run"]
3434
environment:
3535
NO_COLOR: "1"
36-
RUST_BACKTRACE: "1"
3736
DD_API_KEY: "antithesis-test-api-key"
3837
DD_DATA_PLANE_ENABLED: "true"
3938
DD_DATA_PLANE_STANDALONE_MODE: "true"

test/antithesis/harness/src/bin/first_sample_config/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ impl Distribution<DurationSeconds> for Probe {
6464
#[derive(Debug, Clone, Copy, Serialize)]
6565
#[serde(rename_all = "lowercase")]
6666
pub(crate) enum LogLevel {
67-
/// Warnings and above.
68-
Warn,
6967
/// Errors only.
7068
Error,
69+
/// Critical only — the quietest level that still logs.
70+
Critical,
7171
}
7272

7373
impl Distribution<LogLevel> for StandardUniform {
7474
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> LogLevel {
7575
match rng.random_range(0..2u8) {
76-
0 => LogLevel::Warn,
77-
_ => LogLevel::Error,
76+
0 => LogLevel::Error,
77+
_ => LogLevel::Critical,
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)