aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub/pub.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpub/pub.go')
-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