Commit 7004a5bd authored by Erick Hitter's avatar Erick Hitter
Browse files

Include event args when debugging failures

parent 25de2120
......@@ -315,7 +315,11 @@ func runWpCliCmd(subcommand []string) (string, error) {
wpOutStr := string(wpOut)
if err != nil {
logger.Printf("%s - %s", err, wpOutStr)
if debug {
logger.Printf("%s - %s", err, wpOutStr)
logger.Println(fmt.Sprintf("%+v\n", subcommand))
}
return wpOutStr, err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment