Skip to content

Commit 207b4d3

Browse files
committed
firewall.py List failed rule insertion for debugging
1 parent beb9ee2 commit 207b4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/vm/network/firewall.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def execute_json_nft_commands(commands: list[dict]) -> int:
3535
logger.debug("Inserting nftables rules")
3636
return_code, output, error = nft.json_cmd(commands_dict)
3737
if return_code != 0:
38-
logger.error(f"Failed to add nftables rules: {error}")
38+
logger.error("Failed to add nftables rules: %s -- %s", error, json.dumps(commands, indent=4))
3939

4040
return return_code
4141

0 commit comments

Comments
 (0)