Skip to content

Commit

Permalink
tryfix: better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke committed Oct 13, 2024
1 parent a195e97 commit fd5fde5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions deploy/stack.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
dns:
image: ghcr.io/neuroforgede/swarmdns:0.2.5
image: ghcr.io/neuroforgede/swarmdns:0.2.6
command: ["python", "-u", "dns.py"]
env_file:
- .env
Expand All @@ -18,7 +18,7 @@ services:


exporter:
image: ghcr.io/neuroforgede/swarmdns:0.2.5
image: ghcr.io/neuroforgede/swarmdns:0.2.6
command: ["python", "-u", "exporter.py"]
env_file:
- .env
Expand All @@ -33,7 +33,7 @@ services:
mode: global

nodes:
image: ghcr.io/neuroforgede/swarmdns:0.2.5
image: ghcr.io/neuroforgede/swarmdns:0.2.6
command: ["python", "-u", "nodes.py"]
env_file:
- .env
Expand All @@ -50,7 +50,7 @@ services:
replicas: 1

merger:
image: ghcr.io/neuroforgede/swarmdns:0.2.5
image: ghcr.io/neuroforgede/swarmdns:0.2.6
command: ["python", "-u", "merger.py"]
env_file:
- .env
Expand Down
2 changes: 1 addition & 1 deletion dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def resolve_dnsA_to_ip(network_data, networks, domain):
# DNS Server
class DNSServer:
def __init__(self, ip="0.0.0.0", port=53):
print_debug("Initializing DNS server on {ip}:{port}")
print_debug(f"Initializing DNS server on {ip}:{port}")
self.ip = ip
self.port = port
self.server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Expand Down

0 comments on commit fd5fde5

Please sign in to comment.