From 1bd14163a05965bf28e404e4beacaf59f2bf3413 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 27 Aug 2023 17:51:36 -0400 Subject: [PATCH] Log all output to console when running in CI Attempts to debug https://github.com/serai-dex/serai/actions/runs/5992819682/job/16252622433, which seems to be a legitimate test failure. --- tests/coordinator/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/coordinator/src/lib.rs b/tests/coordinator/src/lib.rs index d46a2135..c68bdb57 100644 --- a/tests/coordinator/src/lib.rs +++ b/tests/coordinator/src/lib.rs @@ -115,7 +115,11 @@ pub fn coordinator_stack(name: &str) -> (Handles, ::F, .with_start_policy(StartPolicy::Strict) .with_container_name(name.clone()) .with_log_options(Some(LogOptions { - action: LogAction::ForwardToFile { path: logs_path.clone() }, + action: if std::env::var("GITHUB_CI") == Ok("true".to_string()) { + LogAction::Forward + } else { + LogAction::ForwardToFile { path: logs_path.clone() } + }, policy: LogPolicy::Always, source: LogSource::Both, })),