MCPcopy Index your code
hub / github.com/peak/s5cmd / printDebug

Function printDebug

command/error.go:14–28  ·  view source on GitHub ↗
(op string, err error, urls ...*url.URL)

Source from the content-addressed store, hash-verified

12)
13
14func 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.
31func printError(command, op string, err error) {

Callers 5

doDownloadMethod · 0.85
doUploadMethod · 0.85
doCopyMethod · 0.85
planRunMethod · 0.85
RunMethod · 0.85

Calls 2

DebugFunction · 0.92
cleanupErrorFunction · 0.85

Tested by

no test coverage detected