mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
chore(libstack): add debug info
Some checks failed
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
Some checks failed
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
This commit is contained in:
parent
1371316d23
commit
ff330ccf40
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue