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() {
|
for in.Scan() {
|
||||||
select {
|
select {
|
||||||
default:
|
default:
|
||||||
log.Printf(in.Text())
|
log.Println(p.Name+":",in.Text())
|
||||||
case <- channel:
|
case <- channel:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ func (p *Project) Watching(){
|
|||||||
}
|
}
|
||||||
if _, err := os.Stat(event.Name); err == nil {
|
if _, err := os.Stat(event.Name); err == nil {
|
||||||
i := strings.Index(event.Name, filepath.Ext(event.Name))
|
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
|
// stop and run again
|
||||||
close(channel)
|
close(channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user