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)