mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
mist: update for new ethlog.LogSystem interface (in ethereum/eth-go#59)
This commit is contained in:
parent
294b437414
commit
0a99719a39
@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
@ -18,16 +17,8 @@ type plugin struct {
|
|||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) Println(v ...interface{}) {
|
// LogPrint writes to the GUI log.
|
||||||
gui.printLog(fmt.Sprintln(v...))
|
func (gui *Gui) LogPrint(level ethlog.LogLevel, msg string) {
|
||||||
}
|
|
||||||
|
|
||||||
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) {
|
|
||||||
/*
|
/*
|
||||||
str := strings.TrimRight(s, "\n")
|
str := strings.TrimRight(s, "\n")
|
||||||
lines := strings.Split(str, "\n")
|
lines := strings.Split(str, "\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user