Skip to content

Commit

Permalink
fix log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
shengmiw committed Jan 15, 2018
1 parent a7c75a3 commit 84e4f58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ func (ch *fileWatcherChannel) watch() {
}
}
case err := <-ch.watcher.Errors:
log.Errorf("file watcher error: %v", err)
if err != nil {
log.Errorf("file watcher error: %v", err)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func Messaging(log log.T, ipc channel.Channel, backend MessagingBackend, stopTim
case signal, more := <-backend.Stop():
//stopChannel is closed, stop transmission
if !more {
log.Info("backend already closed, stop messaging")
ipc.Close()
break
}
Expand Down

0 comments on commit 84e4f58

Please sign in to comment.