aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-11 18:06:24 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-11-15 00:00:14 +0800
commit4c16c82500645de83907743555e7256af86a9423 (patch)
tree4bc49bef2a01eb9cbb8d745b91b27719ab424a1b /mobile
parent5513c49c54f42ce6a9683b4fad9193b361b47f8c (diff)
downloaddexon-4c16c82500645de83907743555e7256af86a9423.tar.gz
dexon-4c16c82500645de83907743555e7256af86a9423.tar.zst
dexon-4c16c82500645de83907743555e7256af86a9423.zip
travis, build: cocoapods build fixes and travis caches
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())
}