mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 07:45:22 +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...)
|
||||
|
||||
log.Debug().
|
||||
Str("command", program).
|
||||
Strs("args", args).
|
||||
Str("command", cmd.String()).
|
||||
Interface("env", cmd.Env).
|
||||
Msg("run command")
|
||||
Msg("execute command")
|
||||
|
||||
cmd.Stderr = &stderr
|
||||
|
||||
|
@ -177,6 +176,7 @@ func (wrapper *PluginWrapper) command(command composeCommand, options libstack.O
|
|||
if err != nil {
|
||||
errOutput := stderr.String()
|
||||
log.Warn().
|
||||
Str("command", cmd.String()).
|
||||
Str("output", string(output)).
|
||||
Str("error_output", errOutput).
|
||||
Err(err).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue