diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-02 22:27:26 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-02 22:27:26 +0800 |
commit | a75af474f71606ed4572db216d9440b7c14a8a37 (patch) | |
tree | c407483f27d2b7473faccb46495567df19cb238a | |
parent | e31ec57f8875147766b2bf8e6f129b9a0c1b5e69 (diff) | |
download | dexon-a75af474f71606ed4572db216d9440b7c14a8a37.tar dexon-a75af474f71606ed4572db216d9440b7c14a8a37.tar.gz dexon-a75af474f71606ed4572db216d9440b7c14a8a37.tar.bz2 dexon-a75af474f71606ed4572db216d9440b7c14a8a37.tar.lz dexon-a75af474f71606ed4572db216d9440b7c14a8a37.tar.xz dexon-a75af474f71606ed4572db216d9440b7c14a8a37.tar.zst dexon-a75af474f71606ed4572db216d9440b7c14a8a37.zip |
Fix logger import in tests
-rw-r--r-- | eth/block_pool_test.go | 6 | ||||
-rw-r--r-- | eth/protocol_test.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/eth/block_pool_test.go b/eth/block_pool_test.go index 331dbe504..3d1b28315 100644 --- a/eth/block_pool_test.go +++ b/eth/block_pool_test.go @@ -12,19 +12,19 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" - ethlogger "github.com/ethereum/go-ethereum/logger" + "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/pow" ) const waitTimeout = 60 // seconds -var logsys = ethlogger.NewStdLogSystem(os.Stdout, log.LstdFlags, ethlogger.LogLevel(ethlogger.DebugDetailLevel)) +var logsys = logger.NewStdLogSystem(os.Stdout, log.LstdFlags, logger.LogLevel(logger.DebugDetailLevel)) var ini = false func logInit() { if !ini { - ethlogger.AddLogSystem(logsys) + logger.AddLogSystem(logsys) ini = true } } diff --git a/eth/protocol_test.go b/eth/protocol_test.go index a91806a1c..87d8974d5 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -12,12 +12,12 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" - ethlogger "github.com/ethereum/go-ethereum/logger" + "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p/discover" ) -var sys = ethlogger.NewStdLogSystem(os.Stdout, log.LstdFlags, ethlogger.LogLevel(ethlogger.DebugDetailLevel)) +var sys = logger.NewStdLogSystem(os.Stdout, log.LstdFlags, logger.LogLevel(logger.DebugDetailLevel)) type testMsgReadWriter struct { in chan p2p.Msg |