From b780dc006153b4a6c6672a71846c8bc92192a42e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 14 Mar 2015 10:56:11 +1100 Subject: [PATCH] Demote message verbosity for no auth response when we know ckdb is offline --- src/stratifier.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 33dafa07..0c732c72 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2437,8 +2437,12 @@ static int send_recv_auth(stratum_instance_t *client) } if (contended) LOGWARNING("Prolonged lock contention for ckdb while trying to authorise"); - else - LOGWARNING("Got no auth response from ckdb :("); + else { + if (!sdata->ckdb_offline) + LOGWARNING("Got no auth response from ckdb :("); + else + LOGNOTICE("No auth response for %s from offline ckdb", user->username); + } out_fail: ret = -1; out: