github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/mobile/init.go (about)

     1  // Contains initialization code for the mbile library.
     2  
     3  package geth
     4  
     5  import (
     6  	"os"
     7  	"runtime"
     8  
     9  	"github.com/quickchainproject/quickchain/log"
    10  )
    11  
    12  func init() {
    13  	// Initialize the logger
    14  	log.Root().SetHandler(log.LvlFilterHandler(log.LvlInfo, log.StreamHandler(os.Stderr, log.TerminalFormat(false))))
    15  
    16  	// Initialize the goroutine count
    17  	runtime.GOMAXPROCS(runtime.NumCPU())
    18  }