mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-05-16 23:29:27 +00:00
Deleting debug prints
This commit is contained in:
parent
a8c8bbd09f
commit
bdb09db29e
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
IP=$(ip a | grep "inet " | grep -Fv 127.0.0.1 | sed 's/.*inet \([^/]*\).*/\1/')
|
IP=$(ip a | grep "inet " | grep -Fv 127.0.0.1 | sed 's/.*inet \([^/]*\).*/\1/')
|
||||||
|
|
||||||
echo "My container name is: $HOSTNAME"
|
echo "I am a nwaku node"
|
||||||
|
|
||||||
# Get an unique node index based on the container's IP
|
# Get an unique node index based on the container's IP
|
||||||
FOURTH_OCTET=${IP##*.}
|
FOURTH_OCTET=${IP##*.}
|
||||||
@ -10,8 +10,6 @@ THIRD_OCTET="${IP%.*}"; THIRD_OCTET="${THIRD_OCTET##*.}"
|
|||||||
NODE_INDEX=$((FOURTH_OCTET + 256 * THIRD_OCTET))
|
NODE_INDEX=$((FOURTH_OCTET + 256 * THIRD_OCTET))
|
||||||
|
|
||||||
echo "NODE_INDEX $NODE_INDEX"
|
echo "NODE_INDEX $NODE_INDEX"
|
||||||
echo "$IP"
|
|
||||||
|
|
||||||
|
|
||||||
RETRIES=${RETRIES:=10}
|
RETRIES=${RETRIES:=10}
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,6 @@ def send_waku_msg(node_address, kbytes, pubsub_topic, content_topic):
|
|||||||
try:
|
try:
|
||||||
print("Sending request")
|
print("Sending request")
|
||||||
response = requests.post(url, json=body, headers=headers)
|
response = requests.post(url, json=body, headers=headers)
|
||||||
print("Got response", response)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error sending request: {e}")
|
print(f"Error sending request: {e}")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user