exit route debug

This commit is contained in:
iFargle
2023-03-22 19:53:09 +09:00
parent 8600c3d825
commit 9cc96033db

View File

@@ -277,13 +277,14 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
for route in pulled_routes["routes"]:
if route["prefix"] == "0.0.0.0/0" or route["prefix"] == "::/0":
exit_routes.append(route["id"])
app.logger.debug("Found exit route ID's: "+str(exit_routes))
exit_route_found = True
# Test if it is enabled:
if route["enabled"]:
exit_enabled_color = "green"
exit_tooltip = 'disable'
exit_route_enabled = True
app.logger.debug("Found exit route ID's: "+str(exit_routes))
app.logger.debug("Exit Route Information: ID: %s | Enabled: %s | exit_route_enabled: %s / Found: %s", str(route["id"]), str(route["enabled"], str(exit_route_enabled)), str(exit_route_found))
# Print the button for the Exit routes:
if exit_route_found: