Skip to content

Commit

Permalink
add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
lyondhill committed May 12, 2017
1 parent e56793e commit beaa3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/hookit/hookit.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func DebugExec(container, hook, payload, displayLevel string) (string, error) {
display.ErrorTask()
err = fmt.Errorf("failed to execute %s hook: %s", hook, err.Error())
if registry.GetBool("debug") {
fmt.Printf("An error has occurred: \"%s\"\n", err)
fmt.Printf("An error has occurred: \"%s\"\n", res)
fmt.Println("Entering Debug Mode")
fmt.Printf(" container: %s\n", container)
fmt.Printf(" hook: %s\n", hook)
Expand Down

0 comments on commit beaa3b7

Please sign in to comment.