mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 07:35:12 +01:00
feat(zfspv): move to klog (#166)
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
This commit is contained in:
parent
54f2b0b9fd
commit
d0d1664d43
53 changed files with 124 additions and 2991 deletions
|
|
@ -23,7 +23,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"k8s.io/klog"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -64,7 +64,7 @@ func Get() string {
|
|||
path := filepath.Join(os.Getenv("GOPATH") + versionFile)
|
||||
vBytes, err := ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
logrus.Errorf("failed to get version: %s", err.Error())
|
||||
klog.Errorf("failed to get version: %s", err.Error())
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ func GetBuildMeta() string {
|
|||
path := filepath.Join(os.Getenv("GOPATH") + buildMetaFile)
|
||||
vBytes, err := ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
logrus.Errorf("failed to get build version: %s", err.Error())
|
||||
klog.Errorf("failed to get build version: %s", err.Error())
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ func GetGitCommit() string {
|
|||
cmd := exec.Command("git", "rev-parse", "--verify", "HEAD")
|
||||
output, err := cmd.Output()
|
||||
if err != nil {
|
||||
logrus.Errorf("failed to get git commit: %s", err.Error())
|
||||
klog.Errorf("failed to get git commit: %s", err.Error())
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue