[pve-devel] [PATCH proxmox-firewall] firewall: show full error if rule apply fails
Christoph Heiss
c.heiss at proxmox.com
Wed Jul 2 15:53:50 CEST 2025
On Wed Jul 2, 2025 at 3:42 PM CEST, Stefan Hanreich wrote:
> On 6/30/25 13:23, Christoph Heiss wrote:
>> 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.
>
> How much additional lines in the log would that be?
This should not result in any extra lines, as the {:#} specifier puts
everything on one line [0]. As long as the individual messages/contexts
don't have newlines in them (which they shouldn't), of course.
[0] https://docs.rs/anyhow/latest/anyhow/struct.Error.html
More information about the pve-devel
mailing list