From 86e53f96a99a6b4461d470edb3c391096c51268e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 23 Jan 2021 18:30:33 -0500 Subject: [PATCH] feat: log all triggers called by golang in trace output Trace mode is useful for shell code, but less so for golang. Adding debug logging in golang for trigger calls makes it a little easier to see what is happening. --- plugins/common/subprocess.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/common/subprocess.go b/plugins/common/subprocess.go index f60362ff1..f7da71901 100644 --- a/plugins/common/subprocess.go +++ b/plugins/common/subprocess.go @@ -75,6 +75,7 @@ func (sc *ShellCmd) CombinedOutput() ([]byte, error) { // PlugnTrigger fire the given plugn trigger with the given args func PlugnTrigger(triggerName string, args ...string) error { + LogDebug(fmt.Sprintf("plugn trigger %s %v", triggerName, args)) return PlugnTriggerSetup(triggerName, args...).Run() }