Browse Source

Fine grain create the json share error to debug each field

master
Con Kolivas 10 years ago
parent
commit
cb1e3b8637
  1. 26
      src/stratifier.c

26
src/stratifier.c

@ -2516,19 +2516,19 @@ out:
}
if (!share) {
JSON_CPACK(val, "{sI,ss,ss,sI,ss,ss,so,si,ss,ss,ss,ss}",
"clientid", client->id,
"secondaryuserid", user_instance->secondaryuserid,
"enonce1", client->enonce1,
"workinfoid", current_workbase->id,
"workername", client->workername,
"username", user_instance->username,
"error", json_copy(*err_val),
"errn", err,
"createdate", cdfield,
"createby", "code",
"createcode", __func__,
"createinet", ckp->serverurl);
val = json_object();
json_set_int(val, "clientid", client->id);
json_set_string(val, "secondaryuserid", user_instance->secondaryuserid);
json_set_string(val, "enonce1", client->enonce1);
json_set_int(val, "workinfoid", current_workbase->id);
json_set_string(val, "workername", client->workername);
json_set_string(val, "username", user_instance->username);
json_object_set(val, "error", *err_val);
json_set_int(val, "errn", err);
json_set_string(val, "createdate", cdfield);
json_set_string(val, "createby", "code");
json_set_string(val, "createcode", __func__);
json_set_string(val, "createinet", ckp->serverurl);
ckdbq_add(ckp, ID_SHAREERR, val);
LOGINFO("Invalid share from client %ld: %s", client->id, client->workername);
}

Loading…
Cancel
Save