[logging] feat: simplified the names

This commit is contained in:
Simon Cornet 2025-03-06 08:49:31 +01:00
commit e32fb792f6
6 changed files with 38 additions and 38 deletions

View file

@ -32,17 +32,17 @@ func progressBar() {
)
// initialize progressbar
logging.LogPrint(debug, "Initialize progressbar", nil)
logging.Print(debug, "Initialize progressbar", nil)
err := bar.RenderBlank()
progressBarAdd(1)
if err != nil {
logging.LogFatal("Initialization of the progressbar failed", err)
logging.Fatal("Initialization of the progressbar failed", err)
}
}
func progressBarAdd(amount int) {
if err := bar.Add(amount); err != nil {
logging.LogPrint(debug, "ERROR: Progress bar update error: %v\n", err)
logging.Print(debug, "ERROR: Progress bar update error: %v\n", err)
}
}