Merge pull request #3723 from karalabe/logger-updates-2

Logger updates
This commit is contained in:
Péter Szilágyi
2017-02-28 16:55:37 +02:00
committed by GitHub
21 changed files with 230 additions and 262 deletions

View File

@ -32,7 +32,7 @@ func WaitMined(ctx context.Context, b DeployBackend, tx *types.Transaction) (*ty
queryTicker := time.NewTicker(time.Second)
defer queryTicker.Stop()
logger := log.New("hash", tx.Hash().Hex()[:8])
logger := log.New("hash", tx.Hash())
for {
receipt, err := b.TransactionReceipt(ctx, tx.Hash())
if receipt != nil {