Debug log batch output, tweak logging env var use.

This commit is contained in:
c0gent 2018-12-03 14:49:15 -08:00
parent 0da1a2f353
commit f1a23c687e
No known key found for this signature in database
GPG Key ID: 9CC25E71A743E892
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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);