Skip to content

Commit dcd48e0

Browse files
committed
Debug logging
1 parent 8442fb1 commit dcd48e0

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/BUILD_AND_DEPLOY.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
password: ${{ secrets.BASEFLOW_ACR_PASSWORD }}
3434
push: ${{ github.event_name != 'pull_request' }}
3535
vulnerability_scan: ${{ github.event_name != 'pull_request' }}
36-
version: 1.1
36+
version: 1.2
3737
context: ./oxybox

oxybox/src/mimir/client.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ pub async fn send_to_mimir(
2828
println!("No metrics to send.");
2929
return Ok(());
3030
}
31+
println!(
32+
"Sending {} metrics to Mimir at {}",
33+
metrics.len(),
34+
mimir_endpoint
35+
);
3136

3237
let write_request = WriteRequest {
3338
timeseries: metrics,
@@ -65,9 +70,10 @@ pub async fn send_to_mimir(
6570
if !response.status().is_success() {
6671
let status = response.status();
6772
let body = response.text().await.unwrap_or_default();
73+
eprintln!("Failed to push to Mimir: {} - {}", status, body);
6874
return Err(format!("Failed to push to Mimir: {status} - {body}").into());
6975
}
70-
76+
println!("Metrics sent successfully to Mimir.");
7177
Ok(())
7278
}
7379

0 commit comments

Comments
 (0)