Browse Source

Stratum: Include pool number in send/recv protocol logging

Luke Dashjr 13 years ago
parent
commit
260c64b6ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      util.c

+ 2 - 2
util.c

@@ -998,7 +998,7 @@ static bool __stratum_send(struct pool *pool, char *s, ssize_t len)
 	ssize_t ssent = 0;
 	ssize_t ssent = 0;
 
 
 	if (opt_protocol)
 	if (opt_protocol)
-		applog(LOG_DEBUG, "SEND: %s", s);
+		applog(LOG_DEBUG, "Pool %u: SEND: %s", pool->pool_no, s);
 
 
 	strcat(s, "\n");
 	strcat(s, "\n");
 	len++;
 	len++;
@@ -1166,7 +1166,7 @@ out:
 	if (!sret)
 	if (!sret)
 		clear_sock(pool);
 		clear_sock(pool);
 	else if (opt_protocol)
 	else if (opt_protocol)
-		applog(LOG_DEBUG, "RECVD: %s", sret);
+		applog(LOG_DEBUG, "Pool %u: RECV: %s", pool->pool_no, sret);
 	return sret;
 	return sret;
 }
 }