From 0a99719a398756275d77dfa2eace47bfdb442897 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 16 Oct 2014 12:07:16 +0200 Subject: [PATCH] mist: update for new ethlog.LogSystem interface (in ethereum/eth-go#59) --- mist/bindings.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/mist/bindings.go b/mist/bindings.go index 141c4a469f..aa8bba1e48 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")