all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH proxmox-firewall] firewall: show full error if rule apply fails
@ 2025-06-30 11:23 Christoph Heiss
  2025-07-02 13:42 ` Stefan Hanreich
  2025-07-02 15:53 ` Thomas Lamprecht
  0 siblings, 2 replies; 5+ messages in thread
From: Christoph Heiss @ 2025-06-30 11:23 UTC (permalink / raw)
  To: pve-devel

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@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-07-02 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-30 11:23 [pve-devel] [PATCH proxmox-firewall] firewall: show full error if rule apply fails Christoph Heiss
2025-07-02 13:42 ` Stefan Hanreich
2025-07-02 13:53   ` Christoph Heiss
2025-07-02 13:54     ` Stefan Hanreich
2025-07-02 15:53 ` Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal