Skip to content

Commit

Permalink
disable some log conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Dec 27, 2018
1 parent 3491aed commit e3a3fb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, param
return false, false
}

log.Printf("Difficulty pool/block/share = %d / %d / %d(%f) from %v@%v", shareDiff, t.Difficulty, shareDiffCalc, shareDiffFloat, login, ip)
if s.config.Proxy.Debug {
log.Printf("Difficulty pool/block/share = %d / %d / %d(%f) from %v@%v", shareDiff, t.Difficulty, shareDiffCalc, shareDiffFloat, login, ip)
}

// check share difficulty
shareTarget := new(big.Int).Div(maxUint256, big.NewInt(shareDiff))
Expand Down

0 comments on commit e3a3fb3

Please sign in to comment.