From 6e2f78ebdd4c8d0d150327400a16d67cb65fc482 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 8 Apr 2015 22:18:16 +0200 Subject: [PATCH] Default log to stderr --- cmd/utils/flags.go | 3 ++- core/transaction_pool.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 51844a68e0..c69faba03d 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -231,7 +231,8 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config { // Set verbosity on glog glog.SetV(ctx.GlobalInt(LogLevelFlag.Name)) // Set the log type - glog.SetToStderr(ctx.GlobalBool(LogToStdErrFlag.Name)) + //glog.SetToStderr(ctx.GlobalBool(LogToStdErrFlag.Name)) + glog.SetToStderr(true) // Set the log dir glog.SetLogDir(ctx.GlobalString(LogFileFlag.Name)) diff --git a/core/transaction_pool.go b/core/transaction_pool.go index bfb54e24d5..94a94f93d4 100644 --- a/core/transaction_pool.go +++ b/core/transaction_pool.go @@ -122,7 +122,6 @@ func (self *TxPool) add(tx *types.Transaction) error { } err := self.ValidateTransaction(tx) if err != nil { - self.invalidHashes.Add(tx.Hash()) return err }