Debug log batch output, tweak logging env var use.
This commit is contained in:
parent
0da1a2f353
commit
f1a23c687e
10
run-node
10
run-node
|
@ -1,4 +1,4 @@
|
|||
#/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
# Starts a Hydrabadger node
|
||||
# =========================
|
||||
|
@ -24,7 +24,13 @@ printf -v HOST_PORT "3%03d" $HOST_ID
|
|||
printf -v PEER_0_PORT "3%03d" $PEER_0_ID
|
||||
printf -v PEER_1_PORT "3%03d" $PEER_1_ID
|
||||
|
||||
HYDRABADGER_LOG=peer_node::hydrabadger=error,warn,info,$HYDRABADGER_LOG_ADDTL
|
||||
|
||||
if [[ $HYDRABADGER_LOG ]]
|
||||
then
|
||||
HYDRABADGER_LOG=$HYDRABADGER_LOG
|
||||
else
|
||||
HYDRABADGER_LOG="info"
|
||||
fi
|
||||
|
||||
if [[ $HYDRABADGER_RELEASE ]]
|
||||
then
|
||||
|
|
|
@ -635,6 +635,7 @@ impl<T: Contribution> Future for Handler<T> {
|
|||
while let Some(mut step) = self.step_queue.try_pop() {
|
||||
for batch in step.output.drain(..) {
|
||||
info!("A HONEY BADGER BATCH WITH CONTRIBUTIONS IS BEING STREAMED...");
|
||||
debug!("Batch:\n{:?}", batch);
|
||||
|
||||
let batch_epoch = batch.epoch();
|
||||
let prev_epoch = self.hdb.set_current_epoch(batch_epoch + 1);
|
||||
|
|
Loading…
Reference in New Issue