log fixed
This commit is contained in:
parent
62e1070afe
commit
a51e1f9a8f
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue