Skip to content

Commit

Permalink
Merge pull request #139 from fjl/feature/simpler-log-system
Browse files Browse the repository at this point in the history
Update for new ethlog.LogSystem interface
  • Loading branch information
obscuren committed Oct 17, 2014
2 parents 3976b52 + 0a99719 commit 03fd832
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions mist/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"encoding/json"
"fmt"
"os"
"strconv"

Expand All @@ -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")
Expand Down

0 comments on commit 03fd832

Please sign in to comment.