summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'update.go')
-rw-r--r--update.go17
1 files changed, 7 insertions, 10 deletions
diff --git a/update.go b/update.go
index a8e7c91..96aefc9 100644
--- a/update.go
+++ b/update.go
@@ -14,7 +14,7 @@ func (rs *RepoStatus) Update() {
log.Error(errors.New("Update() is not ready yet"))
return
}
- log.Log(WARN, "Update() START")
+ log.Log(INFO, "Update() START")
duration := timeFunction(func() {
// do things that are safe even if the git tree is dirty
rs.path.SetValue(rs.repopath)
@@ -37,27 +37,24 @@ func (rs *RepoStatus) Update() {
user := rs.userDrop.String()
// rs.CheckDirty() this runs
- log.Log(WARN, "")
- log.Log(WARN, "checkoutBranch", master)
+ log.Log(INFO, "checkoutBranch", master)
rs.checkoutBranch("master", master)
- log.Log(WARN, "")
- log.Log(WARN, "checkoutBranch", devel)
+ log.Log(INFO, "checkoutBranch", devel)
rs.checkoutBranch("devel", devel)
- log.Log(WARN, "")
- log.Log(WARN, "checkoutBranch", user)
+ log.Log(INFO, "checkoutBranch", user)
rs.checkoutBranch("user", user)
rs.recommend()
rs.CheckBranches()
})
rs.setSpeed(duration)
- log.Log(WARN, "Update() END")
+ log.Log(INFO, "Update() END")
}
func (rs *RepoStatus) setSpeed(duration time.Duration) {
s := fmt.Sprint(duration)
if rs.speedActual == nil {
- log.Log(WARN, "can't actually warn")
+ log.Log(WARN, "rs.speedActual == nil")
return
}
rs.speedActual.SetValue(s)
@@ -73,7 +70,7 @@ func (rs *RepoStatus) setSpeed(duration time.Duration) {
// disable all things besides Update() button
func (rs *RepoStatus) DisableEverything() {
- log.Warn("DisableEverything()")
+ log.Log(INFO, "DisableEverything()")
// choosing a major, minor or revision
rs.major.Disable()