fix minor errors revealed by go 1.11 (#2039)

minor fixes for go 1.11
This commit is contained in:
Yann Hodique 2018-09-10 13:49:37 -07:00 committed by David Ashpole
parent fc17731afd
commit b36e6fb63a
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ func (self *rawContainerWatcher) Start(events chan watcher.ContainerEvent) error
glog.Warningf("Error while processing event (%+v): %v", event, err) glog.Warningf("Error while processing event (%+v): %v", event, err)
} }
case err := <-self.watcher.Error(): case err := <-self.watcher.Error():
glog.Warningf("Error while watching %q:", "/", err) glog.Warningf("Error while watching %q: %v", "/", err)
case <-self.stopWatcher: case <-self.stopWatcher:
err := self.watcher.Close() err := self.watcher.Close()
if err == nil { if err == nil {

View File

@ -140,11 +140,11 @@ type glogAdapter struct{}
var _ kmsgparser.Logger = glogAdapter{} var _ kmsgparser.Logger = glogAdapter{}
func (glogAdapter) Infof(format string, args ...interface{}) { func (glogAdapter) Infof(format string, args ...interface{}) {
glog.V(4).Infof(format, args) glog.V(4).Infof(format, args...)
} }
func (glogAdapter) Warningf(format string, args ...interface{}) { func (glogAdapter) Warningf(format string, args ...interface{}) {
glog.V(2).Infof(format, args) glog.V(2).Infof(format, args...)
} }
func (glogAdapter) Errorf(format string, args ...interface{}) { func (glogAdapter) Errorf(format string, args ...interface{}) {
glog.Warningf(format, args) glog.Warningf(format, args...)
} }