aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/init.go
blob: 578314e20a014a48804abc0967d57bcc3f2db50a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package helper

import (
    "log"
    "os"

    "github.com/ethereum/go-ethereum/ethutil"
    logpkg "github.com/ethereum/go-ethereum/logger"
)

var Logger logpkg.LogSystem
var Log = logpkg.NewLogger("TEST")

func init() {
    Logger = logpkg.NewStdLogSystem(os.Stdout, log.LstdFlags, logpkg.InfoLevel)
    logpkg.AddLogSystem(Logger)

    ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
    ethutil.Config.Db, _ = NewMemDatabase()
}