aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-27 01:52:31 +0800
committerobscuren <geffobscura@gmail.com>2014-06-27 01:52:31 +0800
commit491925b71ef3431d2acd8cd0c639d90c9ae0cb2d (patch)
tree8e86c3aa0f913288f2a789c3517444e6fe0583b9 /ethpub
parent0ed19d9f2024744ba93d0e34db6939766b3cfed5 (diff)
parent853053a3b204ddf4ae935e70e0aa5b5d8994493e (diff)
downloadgo-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.tar
go-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.tar.gz
go-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.tar.bz2
go-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.tar.lz
go-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.tar.xz
go-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.tar.zst
go-tangerine-491925b71ef3431d2acd8cd0c639d90c9ae0cb2d.zip
Merge branch 'ethersphere-feature/logging' into develop
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/pub.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index 05acdb058..1bc9e0ce7 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -5,12 +5,15 @@ import (
"encoding/hex"
"encoding/json"
"github.com/ethereum/eth-go/ethchain"
+ "github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethutil"
"math/big"
"strings"
"sync/atomic"
)
+var logger = ethlog.NewLogger("PUB")
+
type PEthereum struct {
manager ethchain.EthManager
stateManager *ethchain.StateManager
@@ -222,7 +225,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc
lib.txPool.QueueTransaction(tx)
if contractCreation {
- ethutil.Config.Log.Infof("Contract addr %x", tx.CreationAddress())
+ logger.Infof("Contract addr %x", tx.CreationAddress())
}
return NewPReciept(contractCreation, tx.CreationAddress(), tx.Hash(), keyPair.Address()), nil