aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-10-16 18:07:16 +0800
committerFelix Lange <fjl@twurst.com>2014-10-16 18:07:43 +0800
commit0a99719a398756275d77dfa2eace47bfdb442897 (patch)
treebaa10717874b261de76d77da4cb24306f004416c
parent294b4374148fb2afa019779a4ef17bec5d4c3665 (diff)
downloadgo-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.tar
go-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.tar.gz
go-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.tar.bz2
go-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.tar.lz
go-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.tar.xz
go-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.tar.zst
go-tangerine-0a99719a398756275d77dfa2eace47bfdb442897.zip
mist: update for new ethlog.LogSystem interface (in ethereum/eth-go#59)
-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")