summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-29 09:16:20 -0600
committerJeff Carr <[email protected]>2024-02-29 09:16:20 -0600
commit18a9a078e039e5d5a1f4b8e9b5b83f57bc3a5418 (patch)
tree1dfb166efc5d5130f5177590d3152be66ab80d3a /scan.go
parenta57e9cff060cd4ddb1fccc424c041e7c829e4d07 (diff)
use 'go vet' instead of 'go build'
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/scan.go b/scan.go
index 811cee6..62033d5 100644
--- a/scan.go
+++ b/scan.go
@@ -33,18 +33,17 @@ func (r *RepoList) ScanRepositories() (int, string) {
})
s := fmt.Sprint(t)
tmp := strconv.Itoa(shown) + " repos shown"
- log.Info("Setting shownCount to", tmp)
me.shownCount.SetText(tmp)
me.duration.SetText(s)
- log.Info("Scanned", i, "repositories.", total, "changes in", s)
+ log.Log(REPOWARN, "Scanned", i, "repositories.", total, "changes in", s)
return i, s
}
func (r *RepoRow) NewScan() int {
var changed int = 0
if r.Status == nil {
- log.Warn("repo.Status = nil. not initialized for some reason")
+ log.Log(REPOWARN, "repo.Status = nil. not initialized for some reason")
return changed
}
@@ -64,7 +63,7 @@ func (r *RepoRow) NewScan() int {
log.Log(REPOWARN, "something finally changed")
c := strings.TrimSpace(c)
for _, line := range strings.Split(c, "\n") {
- log.Info(r.Status.Path(), line)
+ log.Log(REPOWARN, r.Status.Path(), line)
changed += 1
}
}