From f68e398958dd60108e8a9850b04011735d02945a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 17 Feb 2015 12:26:27 +1100 Subject: [PATCH] Add more debug info for proxies --- src/generator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 00f1f6f5..bf850d8e 100644 --- a/src/generator.c +++ b/src/generator.c @@ -814,7 +814,7 @@ static bool parse_notify(ckpool_t *ckp, proxy_instance_t *proxi, json_t *val) goto out; } - LOGDEBUG("New notify"); + LOGDEBUG("Received new notify from proxy %d:%d", proxi->id, proxi->subid); ni = ckzalloc(sizeof(notify_instance_t)); ni->jobid = job_id; LOGDEBUG("Job ID %s", job_id); @@ -1155,6 +1155,7 @@ static bool parse_method(ckpool_t *ckp, proxy_instance_t *proxi, const char *msg goto out; } + LOGDEBUG("Proxy %d:%d received method %s", proxi->id, proxi->subid, buf); if (cmdmatch(buf, "mining.notify")) { ret = parse_notify(ckp, proxi, params); goto out;