log message improved
This commit is contained in:
parent
37ab7223d5
commit
468ed829e4
|
@ -63,7 +63,7 @@ func (p *Project) watching() {
|
|||
|
||||
i := strings.Index(event.Name, filepath.Ext(event.Name))
|
||||
if event.Name[:i] != "" && inArray(ext, p.Watcher.Exts) {
|
||||
p.Buffer.StdLog = append(p.Buffer.StdLog, BufferOut{Time: time.Now(), Text: event.Name[:i] + ext + " changed"})
|
||||
p.Buffer.StdLog = append(p.Buffer.StdLog, BufferOut{Time: time.Now(), Text: strings.ToUpper(ext[1:]) + " changed " + event.Name[:i] + ext})
|
||||
p.parent.Sync <- "sync"
|
||||
fmt.Println(pname(p.Name, 4), Magenta(strings.ToUpper(ext[1:])+" changed"), Magenta(event.Name[:i]+ext))
|
||||
// stop and run again
|
||||
|
|
Loading…
Reference in New Issue