From ad5b2a089b4943fb5ea44411e05e9a3d75cad85b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Feb 2015 22:34:29 +1100 Subject: [PATCH] Add warning about reason for failed subscription --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index be4b6dcc..0b3af579 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2504,6 +2504,7 @@ static json_t *parse_subscribe(stratum_instance_t *client, const int64_t client_ sdata = select_sdata(ckp, ckp_sdata); if (unlikely(!sdata || !sdata->current_workbase)) { + LOGWARNING("Failed to provide subscription due to no %s", sdata ? "current workbase" : "sdata"); stratum_send_message(ckp_sdata, client, "Pool Initialising"); return json_string("Initialising"); }