summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'git.go')
-rw-r--r--git.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/git.go b/git.go
index 79464ab..0ddea8c 100644
--- a/git.go
+++ b/git.go
@@ -94,12 +94,12 @@ func (rs *RepoStatus) CheckDirty() bool {
path := rs.realPath.String()
err, b, out := RunCmd(path, cmd)
if err != nil {
- log.Warn("CheckDirty() b =", b)
- log.Warn("CheckDirty() cmd =", cmd)
- log.Warn("CheckDirty() path =", path)
- log.Warn("CheckDirty() out =", out)
- log.Warn("CheckDirty() err =", err)
- log.Error(err, "CheckDirty() error")
+ log.Warn("CheckDirty() status b =", b)
+ log.Warn("CheckDirty() status cmd =", cmd)
+ log.Warn("CheckDirty() status path =", path)
+ log.Warn("CheckDirty() status out =", out)
+ log.Warn("CheckDirty() status err =", err)
+ log.Error(err, "CheckDirty() git status error")
rs.dirtyLabel.SetValue("error")
return true
}
@@ -114,12 +114,12 @@ func (rs *RepoStatus) CheckDirty() bool {
}
// sometimes b gets exit status 1 when there isn't anything that has changed
// run git status fixes that for some reason.
- log.Log(WARN, "CheckDirty() true", rs.realPath.String())
- log.Log(WARN, "CheckDirty() cmd =", cmd)
- log.Log(WARN, "CheckDirty() b =", b)
- log.Log(WARN, "CheckDirty() path =", path)
- log.Log(WARN, "CheckDirty() out =", out)
- log.Log(WARN, "CheckDirty() err =", err)
+ log.Log(INFO, "CheckDirty() is normal dirty", rs.realPath.String())
+ log.Log(INFO, "CheckDirty() is normal cmd =", cmd)
+ log.Log(INFO, "CheckDirty() is normal b =", b)
+ log.Log(INFO, "CheckDirty() is normal path =", path)
+ log.Log(INFO, "CheckDirty() is normal out =", out)
+ log.Log(INFO, "CheckDirty() is normal err =", err)
rs.dirtyLabel.SetValue("dirty")
return true