Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog - klog as explicit InitFlags() so we add them as necessary - we update the other repositories that we vendor that made a similar change from glog to klog * github.com/kubernetes/repo-infra * k8s.io/gengo/ * k8s.io/kube-openapi/ * github.com/google/cadvisor - Entirely remove all references to glog - Fix some tests by explicit InitFlags in their init() methods Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
This commit is contained in:
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
|
||||
package generated
|
||||
|
||||
import "github.com/golang/glog"
|
||||
import "k8s.io/klog"
|
||||
|
||||
/*
|
||||
ReadOrDie reads a file from gobindata.
|
||||
@@ -27,8 +27,8 @@ func ReadOrDie(filePath string) []byte {
|
||||
fileBytes, err := Asset(filePath)
|
||||
if err != nil {
|
||||
gobindataMsg := "An error occurred, possibly gobindata doesn't know about the file you're opening. For questions on maintaining gobindata, contact the sig-testing group."
|
||||
glog.Infof("Available gobindata files: %v ", AssetNames())
|
||||
glog.Fatalf("Failed opening %v , with error %v. %v.", filePath, err, gobindataMsg)
|
||||
klog.Infof("Available gobindata files: %v ", AssetNames())
|
||||
klog.Fatalf("Failed opening %v , with error %v. %v.", filePath, err, gobindataMsg)
|
||||
}
|
||||
return fileBytes
|
||||
}
|
||||
|
Reference in New Issue
Block a user