Count lost stratum share submits and increase message priority to warning.
diff --git a/cgminer.c b/cgminer.c
index 529333e..d699053 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3242,11 +3242,13 @@ static void *submit_work_thread(void *userdata)
applog(LOG_WARNING, "Pool %d communication resumed, submitting work", pool->pool_no);
applog(LOG_DEBUG, "Successfully submitted, adding to stratum_shares db");
} else {
- applog(LOG_INFO, "Failed to submit stratum share");
+ applog(LOG_WARNING, "Failed to submit stratum share to pool %d", pool->pool_no);
mutex_lock(&sshare_lock);
HASH_DEL(stratum_shares, sshare);
mutex_unlock(&sshare_lock);
free(sshare);
+ pool->stale_shares++;
+ total_stale++;
if (!pool_tset(pool, &pool->submit_fail)) {
total_ro++;