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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user