From d59c8c1b41384e6dc78e42f25377c016492a1c7a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 29 Apr 2015 19:48:58 +1000 Subject: [PATCH] Demote proxy logging to info level --- src/stratifier.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index c6a50ca7..b0a30410 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -502,6 +502,18 @@ static void notice_msg_entries(char_entry_t **entries) } } +static void info_msg_entries(char_entry_t **entries) +{ + char_entry_t *entry, *tmpentry; + + DL_FOREACH_SAFE(*entries, entry, tmpentry) { + DL_DELETE(*entries, entry); + LOGINFO("%s", entry->buf); + free(entry->buf); + free(entry); + } +} + static void generate_coinbase(const ckpool_t *ckp, workbase_t *wb) { uint64_t *u64, g64, d64 = 0; @@ -5715,7 +5727,7 @@ static void *statsupdate(void *arg) } } mutex_unlock(&sdata->proxy_lock); - notice_msg_entries(&char_list); + info_msg_entries(&char_list); } ts_realtime(&ts_now);