From 75024a41c6bf48d871f4f189c402c515ca5ed763 Mon Sep 17 00:00:00 2001 From: satoshi Date: Mon, 18 May 2026 21:13:20 +0300 Subject: [PATCH] Enable ckpool LOG_INFO loglevel for share statistics Sets CKPOOL_LOGLEVEL=6 so ckpool emits per-share Accepted/Rejected client log lines needed by the stats and difficulty distribution features. --- docker_entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh index e3ec40e..dcc47cc 100755 --- a/docker_entrypoint.sh +++ b/docker_entrypoint.sh @@ -105,6 +105,10 @@ export UPDATE_INTERVAL_S=30 # disabled the second bind is harmless (nothing connects to it). export TLS_INTERNAL_PORT=3437 +# CKPool loglevel: 6 = LOG_INFO, required for share-level logging +# (Accepted/Rejected client lines) used by the stats feature. +export CKPOOL_LOGLEVEL=6 + mkdir -p "${LOGDIR}" "${SOCKET_DIR}" /etc/ckpool # Render ckpool.conf using the same sed approach as the upstream @@ -132,8 +136,8 @@ sed \ -e "s|\${ZMQ_BLOCK}|${ZMQ_BLOCK}|g" \ "${TEMPLATE}" > "${CONF}" -echo "kamado-entrypoint: starting ckpool (solo, ${BITCOIND_VARIANT}) on port ${STRATUM_PORT}" -/usr/local/bin/ckpool --btcsolo --config "${CONF}" --sockdir "${SOCKET_DIR}" --log-shares & +echo "kamado-entrypoint: starting ckpool (solo, ${BITCOIND_VARIANT}) on port ${STRATUM_PORT}, loglevel ${CKPOOL_LOGLEVEL}" +/usr/local/bin/ckpool --btcsolo --config "${CONF}" --sockdir "${SOCKET_DIR}" --log-shares -l "${CKPOOL_LOGLEVEL}" & CKPOOL_PID=$! # DB_PATH must live on the persisted main volume; the default