aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-17 23:24:51 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-17 23:24:51 +0800
commit03fd832ee88cae2fb9e54dd9c3ea60eeb836e389 (patch)
tree8feb2b952037d00daa980e5f9f26e8f1f0b448e5
parent3976b52ed7df94b1a5fe4e4e0853ff73c58460a0 (diff)
parent0a99719a398756275d77dfa2eace47bfdb442897 (diff)
downloadgo-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.tar
go-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.tar.gz
go-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.tar.bz2
go-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.tar.lz
go-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.tar.xz
go-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.tar.zst
go-tangerine-03fd832ee88cae2fb9e54dd9c3ea60eeb836e389.zip
Merge pull request #139 from fjl/feature/simpler-log-system
Update for new ethlog.LogSystem interface
-rw-r--r--mist/bindings.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/mist/bindings.go b/mist/bindings.go
index 141c4a469..aa8bba1e4 100644
--- a/mist/bindings.go
+++ b/mist/bindings.go
@@ -2,7 +2,6 @@ package main
import (
"encoding/json"
- "fmt"
"os"
"strconv"
@@ -18,16 +17,8 @@ type plugin struct {
Path string `json:"path"`
}
-func (gui *Gui) Println(v ...interface{}) {
- gui.printLog(fmt.Sprintln(v...))
-}
-
-func (gui *Gui) Printf(format string, v ...interface{}) {
- gui.printLog(fmt.Sprintf(format, v...))
-}
-
-// Print function that logs directly to the GUI
-func (gui *Gui) printLog(s string) {
+// LogPrint writes to the GUI log.
+func (gui *Gui) LogPrint(level ethlog.LogLevel, msg string) {
/*
str := strings.TrimRight(s, "\n")
lines := strings.Split(str, "\n")