mirror of https://github.com/portainer/portainer
chore(libstack): add debug info
parent
1371316d23
commit
ff330ccf40
|
@ -166,10 +166,9 @@ func (wrapper *PluginWrapper) command(command composeCommand, options libstack.O
|
||||||
cmd.Env = append(cmd.Env, options.Env...)
|
cmd.Env = append(cmd.Env, options.Env...)
|
||||||
|
|
||||||
log.Debug().
|
log.Debug().
|
||||||
Str("command", program).
|
Str("command", cmd.String()).
|
||||||
Strs("args", args).
|
|
||||||
Interface("env", cmd.Env).
|
Interface("env", cmd.Env).
|
||||||
Msg("run command")
|
Msg("execute command")
|
||||||
|
|
||||||
cmd.Stderr = &stderr
|
cmd.Stderr = &stderr
|
||||||
|
|
||||||
|
@ -177,6 +176,7 @@ func (wrapper *PluginWrapper) command(command composeCommand, options libstack.O
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errOutput := stderr.String()
|
errOutput := stderr.String()
|
||||||
log.Warn().
|
log.Warn().
|
||||||
|
Str("command", cmd.String()).
|
||||||
Str("output", string(output)).
|
Str("output", string(output)).
|
||||||
Str("error_output", errOutput).
|
Str("error_output", errOutput).
|
||||||
Err(err).
|
Err(err).
|
||||||
|
|
Loading…
Reference in New Issue