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.
This commit is contained in:
Luke Parker
2023-08-27 17:51:36 -04:00
parent 89a6ee9290
commit 1bd14163a0

View File

@@ -115,7 +115,11 @@ pub fn coordinator_stack(name: &str) -> (Handles, <Ristretto as Ciphersuite>::F,
.with_start_policy(StartPolicy::Strict) .with_start_policy(StartPolicy::Strict)
.with_container_name(name.clone()) .with_container_name(name.clone())
.with_log_options(Some(LogOptions { .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, policy: LogPolicy::Always,
source: LogSource::Both, source: LogSource::Both,
})), })),