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.
This commit is contained in:
1 parent
aeb9241d3b
commit
86e53f96a9
1 file changed
+1
@@ -75,6 +75,7 @@ func (sc *ShellCmd) CombinedOutput() ([]byte, error) {
|
|||||||
|
|
||||||
// PlugnTrigger fire the given plugn trigger with the given args
|
// PlugnTrigger fire the given plugn trigger with the given args
|
||||||
func PlugnTrigger(triggerName string, args ...string) error {
|
func PlugnTrigger(triggerName string, args ...string) error {
|
||||||
|
LogDebug(fmt.Sprintf("plugn trigger %s %v", triggerName, args))
|
||||||
return PlugnTriggerSetup(triggerName, args...).Run()
|
return PlugnTriggerSetup(triggerName, args...).Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user