From 468ed829e4b0bb2ddf47509667e2db6dfdc0d3cd Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 17 Oct 2016 12:18:53 +0200 Subject: [PATCH] log message improved --- cli/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/watcher.go b/cli/watcher.go index bda5de1..9e8cfe6 100644 --- a/cli/watcher.go +++ b/cli/watcher.go @@ -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