removed 'master' debug echo's

This commit is contained in:
xdrm-brackets 2018-01-31 22:55:32 +01:00
parent 3a94d8c357
commit 650dc76324
1 changed files with 0 additions and 8 deletions

8
master
View File

@ -92,7 +92,6 @@ MASTER_PID=$?;
PORT="$MIN_PORT";
for logger_name in "${LOGGERS[@]}"; do
echo "(1)";
# Find an available port
while true; do
@ -105,35 +104,28 @@ for logger_name in "${LOGGERS[@]}"; do
done;
# send logger port request
echo "(2)";
echo " (.) Sending logger@$logger_name request";
$ROOT/write master "$POOL_KEY:$logger_name:$LOCAL_IP:$PORT";
echo "(3)";
# check pool response
RESP="`nc -w 2 -lp $PORT`";
echo "(4)";
# empty response -> ignore
test -z "$RESP" && continue;
echo "(5)";
# not a number -> ignore
echo -n "$RESP" | grep -P '^\d+$' >/dev/null || continue;
echo "(6)";
# Create output bound
echo " (.) Connecting '$logger_name' to $POOL_HOST:$RESP";
( $ROOT/bind-output master_$logger_name $POOL_HOST $RESP )&
OUTPUT_PID[$logger_name]=$!;
echo "(7)";
echo " (.) launching logger@$logger_name";
# launch logger bound to output
( $LOGGER_DIR/$logger_name | cat > /tmp/outbuf_master_$logger_name )&
LOGGER_PID[$logger_name]=$!;
echo "(8)";