diff options
| author | Jeff Carr <[email protected]> | 2024-01-23 10:52:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-23 10:52:17 -0600 |
| commit | 294119e7c2678b609aa8b66b6ffc219f1c399309 (patch) | |
| tree | 1a0b9e7de365e6540d0b3f9cc762a852472e32f6 /update.go | |
| parent | 7546209d24055bb1252ba3cab63e09f692c3e74b (diff) | |
buttons for scanning .git/config and go.sum
common branch handling
scan go.sum & .git/config on New()
parse go & git config files
cleaner debugging
cleaning up logging
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'update.go')
| -rw-r--r-- | update.go | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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() |
