From b3589a71f3f8ac66b24bded664880be1cf4f9bb1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 23 Feb 2015 22:26:57 +1100 Subject: [PATCH] Add proxy info to verbose share result logging --- src/generator.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/generator.c b/src/generator.c index 851e9372..0c2656b5 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1452,11 +1452,12 @@ static bool parse_share(proxy_instance_t *proxi, const char *buf) * so long as we recognised it as a share response */ ret = true; if (!share) { - LOGINFO("Failed to find matching share to result: %s", buf); + LOGINFO("Proxy %d:%d failed to find matching share to result: %s", + proxi->id, proxi->subid, buf); goto out; } - LOGINFO("Found share result %s from client %d with msg_id %d", buf, share->client_id, - share->msg_id); + LOGINFO("Proxy %d:%d share result %s from client %d with msg_id %d", proxi->id, + proxi->subid, buf, share->client_id, share->msg_id); free(share); out: if (val)