[pve-devel] [PATCH proxmox-firewall] firewall: show full error if rule apply fails
Christoph Heiss
c.heiss at proxmox.com
Mon Jun 30 13:23:32 CEST 2025
Currently, this will only log something like
error updating firewall rules: cannot execute nftables commands
which, by itself, is pretty unhelpful. `anyhow` errors have context, so
show that too.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
proxmox-firewall/src/bin/proxmox-firewall.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-firewall/src/bin/proxmox-firewall.rs b/proxmox-firewall/src/bin/proxmox-firewall.rs
index 4732e51..5cd0c70 100644
--- a/proxmox-firewall/src/bin/proxmox-firewall.rs
+++ b/proxmox-firewall/src/bin/proxmox-firewall.rs
@@ -101,7 +101,7 @@ fn main() -> Result<(), std::io::Error> {
let start = Instant::now();
if let Err(error) = handle_firewall() {
- log::error!("error updating firewall rules: {error}");
+ log::error!("error updating firewall rules: {error:#}");
}
let duration = start.elapsed();
--
2.49.0
More information about the pve-devel
mailing list