feat: renamed verbose to debug and improved the messages
This commit is contained in:
parent
5207524381
commit
7b5cb295ff
5 changed files with 35 additions and 36 deletions
|
|
@ -68,12 +68,12 @@ func printPullError(pullErrorMsg []string) {
|
|||
}
|
||||
|
||||
func logPrint(message string, err error) {
|
||||
if verbose {
|
||||
if debug {
|
||||
if err != nil {
|
||||
log.Printf("gogitlabber | %v error: %v\n", message, err)
|
||||
log.Printf("gogitlabber | DEBUG: %v error: %v\n", message, err)
|
||||
}
|
||||
if err == nil {
|
||||
log.Printf("gogitlabber | %v\n", message)
|
||||
log.Printf("gogitlabber | DEBUG: %v\n", message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue