(op string, err error, urls ...*url.URL)
| 12 | ) |
| 13 | |
| 14 | func printDebug(op string, err error, urls ...*url.URL) { |
| 15 | command := op |
| 16 | for _, url := range urls { |
| 17 | if url != nil { |
| 18 | command += fmt.Sprintf(" %s", url) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | msg := log.DebugMessage{ |
| 23 | Command: command, |
| 24 | Operation: op, |
| 25 | Err: cleanupError(err), |
| 26 | } |
| 27 | log.Debug(msg) |
| 28 | } |
| 29 | |
| 30 | // printError is the helper function to log error messages. |
| 31 | func printError(command, op string, err error) { |
no test coverage detected