|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|