Skip to content

Commit d88e058

Browse files
Re-add errors (#402)
* Re-add errors Re-adds errors that were warnified in b2c1733. Specifically targeting failures when connecting to web services, and did not errorify messages about parsing codeowners, waiting for a test subcommand to complete, and gathering pre-test context. * Wrong one
1 parent b2c1733 commit d88e058

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

bundle/src/bundler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl BundlerUtil {
8383
.iter()
8484
.fold(tempfile::tempfile()?, |f, event| {
8585
if let Err(e) = serde_json::to_writer(&f, event) {
86-
tracing::warn!("Failed to write BEP event: {}", e);
86+
tracing::error!("Failed to write BEP event: {}", e);
8787
}
8888
f
8989
});

cli/src/context_quarantine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub async fn gather_quarantine_context(
182182
let result = api_client.get_quarantining_config(request).await;
183183

184184
if let Err(ref err) = result {
185-
tracing::warn!("{}", err);
185+
tracing::error!("{}", err);
186186
}
187187

188188
result.unwrap_or_default()

cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn main() -> anyhow::Result<()> {
7676
std::process::exit(exitcode::OK);
7777
}
7878
_ => {
79-
tracing::warn!("Error: {:?}", e);
79+
tracing::error!("Error: {:?}", e);
8080
std::process::exit(exitcode::SOFTWARE);
8181
}
8282
},

cli/src/quarantine_command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub async fn run_quarantine(QuarantineArgs { upload_args }: QuarantineArgs) -> a
2323
upload_bundle_error,
2424
}| {
2525
if let Some(e) = upload_bundle_error {
26-
tracing::warn!("Error uploading test results: {:?}", e);
26+
tracing::error!("Error uploading test results: {:?}", e);
2727
}
2828
exit_code
2929
},

cli/src/test_command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub async fn run_test(
7272
},
7373
)
7474
.or_else(|e| {
75-
tracing::warn!("Error uploading test results: {:?}", e);
75+
tracing::error!("Error uploading test results: {:?}", e);
7676
Ok(test_run_result_exit_code)
7777
})
7878
}

test_report/src/report.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl MutTestReport {
169169
)) {
170170
Ok(_) => true,
171171
Err(e) => {
172-
tracing::warn!("Error uploading: {:?}", e);
172+
tracing::error!("Error uploading: {:?}", e);
173173
false
174174
}
175175
}

0 commit comments

Comments
 (0)