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.he...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel