feat: improve log messages

This commit is contained in:
Simon Cornet 2025-03-06 10:23:33 +01:00
commit 78d5b78a26
2 changed files with 3 additions and 2 deletions

View file

@ -61,7 +61,7 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
repoCount := len(repositories)
logging.Print("Resetting the progressbar", nil)
logging.Print("BAR: Resetting the progressbar", nil)
if !debug {
err = bar.Set(0)
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 {
bar.ChangeMax(repoCount)
}

View file

@ -41,6 +41,7 @@ func progressBar() {
}
func progressBarAdd(amount int) {
logging.Print("BAR: Progressing the bar", nil)
if err := bar.Add(amount); err != nil {
logging.Print("ERROR: Progress bar update error: %v\n", err)
}