Skip to content

Commit 28d8448

Browse files
author
auxten
committed
Mute verbose logs
1 parent 2bf4ecc commit 28d8448

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

blockproducer/chain_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ var (
4545

4646
func TestChain(t *testing.T) {
4747
Convey("test main chain", t, func() {
48+
log.SetLevel(log.InfoLevel)
4849
confDir := "../test/mainchain/node_standalone/config.yaml"
4950
privDir := "../test/mainchain/node_standalone/private.key"
5051
cleanup, _, _, rpcServer, err := initNode(

sqlchain/chain.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,6 @@ func (c *Chain) pushAckedQuery(ack *wt.SignedAckHeader) (err error) {
479479

480480
ldbKey := make([]byte, 0, len(metaAckIndexBucket)+len(k)+hash.HashSize)
481481
ldbKey = append(append(append(ldbKey, metaAckIndexBucket[:]...), k...), ack.HeaderHash[:]...)
482-
encHex := fmt.Sprintf("%x", enc.Bytes())
483-
encHexStr := fmt.Sprintf("%s", enc.Bytes())
484-
log.Debug(encHex)
485-
log.Debug(encHexStr)
486482
err = c.ldb.Put(ldbKey, enc.Bytes(), nil)
487483
//err = b.Bucket(metaAckIndexBucket).Put(ack.HeaderHash[:], enc.Bytes())
488484
if err != nil {

sqlchain/chain_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import (
2626
"testing"
2727
"time"
2828

29+
"github.com/CovenantSQL/CovenantSQL/utils/log"
30+
2931
"github.com/CovenantSQL/CovenantSQL/conf"
3032
"github.com/CovenantSQL/CovenantSQL/consistent"
3133
"github.com/CovenantSQL/CovenantSQL/crypto/kms"
@@ -86,6 +88,7 @@ func TestIndexKey(t *testing.T) {
8688
}
8789

8890
func TestMultiChain(t *testing.T) {
91+
log.SetLevel(log.InfoLevel)
8992
// Create genesis block
9093
genesis, err := createRandomBlock(genesisHash, true)
9194

utils/log/logwrapper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const (
4949
// if package name exists and log level is more verbose, the log will be dropped
5050
var PkgDebugLogFilter = map[string]logrus.Level{
5151
"metric": InfoLevel,
52+
"rpc": InfoLevel,
5253
}
5354

5455
// Logger wraps logrus logger type.

0 commit comments

Comments
 (0)