feat: improve log messages
This commit is contained in:
parent
fee0eaaed7
commit
78d5b78a26
2 changed files with 3 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
|
||||||
|
|
||||||
repoCount := len(repositories)
|
repoCount := len(repositories)
|
||||||
|
|
||||||
logging.Print("Resetting the progressbar", nil)
|
logging.Print("BAR: Resetting the progressbar", nil)
|
||||||
if !debug {
|
if !debug {
|
||||||
err = bar.Set(0)
|
err = bar.Set(0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -69,7 +69,7 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logging.Print("Increasing the max value of the progressbar", nil)
|
logging.Print("BAR: Increasing the max value of the progressbar", nil)
|
||||||
if !debug {
|
if !debug {
|
||||||
bar.ChangeMax(repoCount)
|
bar.ChangeMax(repoCount)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ func progressBar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func progressBarAdd(amount int) {
|
func progressBarAdd(amount int) {
|
||||||
|
logging.Print("BAR: Progressing the bar", nil)
|
||||||
if err := bar.Add(amount); err != nil {
|
if err := bar.Add(amount); err != nil {
|
||||||
logging.Print("ERROR: Progress bar update error: %v\n", err)
|
logging.Print("ERROR: Progress bar update error: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue