Use glog.*f when a format string is passed

ref:
https://godoc.org/github.com/golang/glog

I use the following commands to search all the invalid usage:
$ grep "glog.Warning(" * -r | grep %
$ grep "glog.Info(" * -r | grep %
$ grep "glog.Error(" * -r | grep %
$ grep ").Info(" * -r | grep % | grep "glog.V("
This commit is contained in:
Cao Shufeng
2017-06-21 16:10:06 +08:00
parent 0744964956
commit 0c577c47d5
9 changed files with 15 additions and 15 deletions

View File

@@ -94,7 +94,7 @@ func (es *e2eServices) stop() {
}
for _, d := range es.rmDirs {
glog.Info("Deleting directory %v", d)
glog.Infof("Deleting directory %v", d)
err := os.RemoveAll(d)
if err != nil {
glog.Errorf("Failed to delete directory %s.\n%v", d, err)