log fixed

This commit is contained in:
alessio 2016-08-04 22:19:56 +02:00
parent 62e1070afe
commit a51e1f9a8f
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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)