mirror of
https://github.com/status-im/status-go-monitor.git
synced 2025-01-27 03:24:46 +00:00
add logging to a tmp file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
7e3aa2a85b
commit
d03bc79725
7
main.go
7
main.go
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/jroimartin/gocui"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
type rcpResp map[string]interface{}
|
||||
@ -15,6 +16,12 @@ const interval = 5
|
||||
var threadDone = make(chan struct{})
|
||||
|
||||
func main() {
|
||||
clientLogFile, err := os.OpenFile("/tmp/x.log", os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
|
||||
if err != nil {
|
||||
log.Panicln(err)
|
||||
}
|
||||
log.SetOutput(clientLogFile)
|
||||
|
||||
g, err := gocui.NewGui(gocui.OutputNormal)
|
||||
if err != nil {
|
||||
log.Panicln(err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user