diff options
author | Felix Lange <fjl@twurst.com> | 2014-10-16 18:07:16 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-10-16 18:07:43 +0800 |
commit | 0a99719a398756275d77dfa2eace47bfdb442897 (patch) | |
tree | baa10717874b261de76d77da4cb24306f004416c /mist/bindings.go | |
parent | 294b4374148fb2afa019779a4ef17bec5d4c3665 (diff) | |
download | dexon-0a99719a398756275d77dfa2eace47bfdb442897.tar dexon-0a99719a398756275d77dfa2eace47bfdb442897.tar.gz dexon-0a99719a398756275d77dfa2eace47bfdb442897.tar.bz2 dexon-0a99719a398756275d77dfa2eace47bfdb442897.tar.lz dexon-0a99719a398756275d77dfa2eace47bfdb442897.tar.xz dexon-0a99719a398756275d77dfa2eace47bfdb442897.tar.zst dexon-0a99719a398756275d77dfa2eace47bfdb442897.zip |
mist: update for new ethlog.LogSystem interface (in ethereum/eth-go#59)
Diffstat (limited to 'mist/bindings.go')
-rw-r--r-- | mist/bindings.go | 13 |
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") |