Fix formatting args

This commit is contained in:
Manuel de Brito Fontes 2018-08-25 10:56:46 -03:00 committed by Manuel Alejandro de Brito Fontes
parent cd9d2aae65
commit db947e344e
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ Error loading new template: %v
for _, f := range filesToWatch { for _, f := range filesToWatch {
_, err = watch.NewFileWatcher(f, func() { _, err = watch.NewFileWatcher(f, func() {
glog.Info("File %v changed. Reloading NGINX", f) glog.Infof("File %v changed. Reloading NGINX", f)
n.syncQueue.EnqueueTask(task.GetDummyObject("file-change")) n.syncQueue.EnqueueTask(task.GetDummyObject("file-change"))
}) })
if err != nil { if err != nil {

View file

@ -92,5 +92,5 @@ func New(m string) error {
// Errorf formats according to a format specifier and returns the string // Errorf formats according to a format specifier and returns the string
// as a value that satisfies error. // as a value that satisfies error.
func Errorf(format string, args ...interface{}) error { func Errorf(format string, args ...interface{}) error {
return errors.Errorf(format, args) return errors.Errorf(format, args...)
} }