mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
21 lines
414 B
Go
21 lines
414 B
Go
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()
|
|
}
|