Add stderr logging for Docker images command failure
All checks were successful
Build and Release / build-and-release (push) Successful in 1m9s

Agent changes:
- Log stderr output when docker images command fails
- This will show the actual error message (e.g., permission denied, docker not found)
- Helps diagnose why docker images collection is failing

Updated to version 0.1.177
This commit is contained in:
Christoffer Martinsson 2025-11-27 12:28:55 +01:00
parent eaa057b284
commit fb40cce748
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "cm-dashboard-agent"
version = "0.1.176"
version = "0.1.177"
edition = "2021"
[dependencies]

View File

@ -834,7 +834,8 @@ impl SystemdCollector {
let output = match output {
Ok(out) if out.status.success() => out,
Ok(out) => {
info!("Docker images command failed with status: {}", out.status);
let stderr = String::from_utf8_lossy(&out.stderr);
info!("Docker images command failed with status: {}, stderr: {}", out.status, stderr);
return images;
}
Err(e) => {

View File

@ -1,6 +1,6 @@
[package]
name = "cm-dashboard"
version = "0.1.176"
version = "0.1.177"
edition = "2021"
[dependencies]

View File

@ -1,6 +1,6 @@
[package]
name = "cm-dashboard-shared"
version = "0.1.176"
version = "0.1.177"
edition = "2021"
[dependencies]