diff options
Diffstat (limited to 'mobile')
-rw-r--r-- | mobile/init.go (renamed from mobile/glog.go) | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile/glog.go b/mobile/init.go index ce7c2ec2b..0fbc6bd3e 100644 --- a/mobile/glog.go +++ b/mobile/init.go @@ -14,16 +14,22 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. -// Contains wrappers and init code for the logger. +// Contains initialization code for the mbile library. package geth import ( + "runtime" + "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" ) func init() { + // Initialize the logger glog.SetV(logger.Info) glog.SetToStderr(true) + + // Initialize the goroutine count + runtime.GOMAXPROCS(runtime.NumCPU()) } |