[pve-devel] [PATCH proxmox-firewall] firewall: show full error if rule apply fails

Stefan Hanreich s.hanreich at proxmox.com
Wed Jul 2 15:54:56 CEST 2025



On 7/2/25 15:53, Christoph Heiss wrote:
> 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.

Ah, sorry, I was confusing it with {:?}




More information about the pve-devel mailing list