From a51e1f9a8f160527248397d0194d2b8bcfa966c7 Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 4 Aug 2016 22:19:56 +0200 Subject: [PATCH] log fixed --- realize/project.go | 2 +- realize/watcher.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/realize/project.go b/realize/project.go index b5107bc..2c421d7 100644 --- a/realize/project.go +++ b/realize/project.go @@ -39,7 +39,7 @@ func (p *Project) GoRun (channel chan bool) error{ for in.Scan() { select { default: - log.Printf(in.Text()) + log.Println(p.Name+":",in.Text()) case <- channel: return nil } diff --git a/realize/watcher.go b/realize/watcher.go index db8a3b3..e9b0c6e 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -85,7 +85,7 @@ func (p *Project) Watching(){ } if _, err := os.Stat(event.Name); err == nil { i := strings.Index(event.Name, filepath.Ext(event.Name)) - log.Println(green(p.Name+":")+"\t", event.Name[:i]) + log.Println(green(p.Name+":"), event.Name[:i]) // stop and run again close(channel)