1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 18:40:40 +00:00

Merge pull request #370 from sergeylanzman/make-log-for-beego-developer

Make logs for beego developer, not for  bee developer
This commit is contained in:
astaxie
2017-03-11 15:36:37 +08:00
committed by GitHub
3 changed files with 19 additions and 19 deletions

View File

@ -73,14 +73,14 @@ func NewWatcher(paths []string, files []string, isgenerate bool) {
mt := getFileModTime(e.Name)
if t := eventTime[e.Name]; mt == t {
beeLogger.Log.Infof(colors.Bold("Skipping: ")+"%s", e.String())
beeLogger.Log.Hintf(colors.Bold("Skipping: ")+"%s", e.String())
isBuild = false
}
eventTime[e.Name] = mt
if isBuild {
beeLogger.Log.Infof("Event fired: %s", e)
beeLogger.Log.Hintf("Event fired: %s", e)
go func() {
// Wait 1s before autobuild until there is no file change.
scheduleTime = time.Now().Add(1 * time.Second)
@ -96,7 +96,7 @@ func NewWatcher(paths []string, files []string, isgenerate bool) {
beeLogger.Log.Info("Initializing watcher...")
for _, path := range paths {
beeLogger.Log.Infof(colors.Bold("Watching: ")+"%s", path)
beeLogger.Log.Hintf(colors.Bold("Watching: ")+"%s", path)
err = watcher.Add(path)
if err != nil {
beeLogger.Log.Fatalf("Failed to watch directory: %s", err)