Browse Source

Decrease the loglevel of failing to find workers' diff to set

master
Con Kolivas 10 years ago
parent
commit
1176d71211
  1. 10
      src/stratifier.c

10
src/stratifier.c

@ -2397,8 +2397,9 @@ static void set_worker_mindiff(ckpool_t *ckp, const char *workername, int mindif
HASH_FIND_STR(user_instances, username, instance); HASH_FIND_STR(user_instances, username, instance);
ck_runlock(&instance_lock); ck_runlock(&instance_lock);
if (unlikely(!instance)) /* They may just have not connected yet */
return LOGWARNING("Failed to find user %s in set_worker_mindiff", username); if (!instance)
return LOGINFO("Failed to find user %s in set_worker_mindiff", username);
/* Then find the matching worker instance */ /* Then find the matching worker instance */
ck_rlock(&instance_lock); ck_rlock(&instance_lock);
@ -2410,8 +2411,9 @@ static void set_worker_mindiff(ckpool_t *ckp, const char *workername, int mindif
} }
ck_runlock(&instance_lock); ck_runlock(&instance_lock);
if (unlikely(!worker)) /* They may just not be connected at the moment */
return LOGWARNING("Failed to find worker %s in set_worker_mindiff", workername); if (!worker)
return LOGINFO("Failed to find worker %s in set_worker_mindiff", workername);
if (mindiff < 1) if (mindiff < 1)
return LOGINFO("Worker %s requested invalid diff %ld", worker->workername, mindiff); return LOGINFO("Worker %s requested invalid diff %ld", worker->workername, mindiff);

Loading…
Cancel
Save