Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from remyLemeunier/more_logs
Browse files Browse the repository at this point in the history
Add debug for external ggn commands
  • Loading branch information
obiesmans authored Aug 17, 2017
2 parents fd1a739 + 5caed3c commit 66c824c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions deployers/ggn.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func (d *DeployerGgn) listUnits(env string) ([]string, error) {

stdOut, err := ggnCmd.CombinedOutput()
d.Log.WithFields(log.Fields{
"cmd": ggnCmd.Path,
"args": strings.Join(ggnCmd.Args, " "),
"cmd": ggnCmd.Path,
"out": string(stdOut),
}).Debug("Executing external command")

if err != nil {
Expand Down Expand Up @@ -74,8 +74,8 @@ func (d *DeployerGgn) catUnit(env string, unit string) (string, error) {
ggnCmd := ggn(env, "fleetctl", "cat", unit)
stdOut, err := ggnCmd.CombinedOutput()
d.Log.WithFields(log.Fields{
"cmd": ggnCmd.Path,
"args": strings.Join(ggnCmd.Args, " "),
"cmd": strings.Join(ggnCmd.Args, " "),
"out": string(stdOut),
}).Debug("Executing external command")
if err != nil {
return "", err
Expand Down Expand Up @@ -170,8 +170,10 @@ func (d *DeployerGgn) Deploy(env string, podVersion string) error {
}

ggnCmd := ggn(ggnEnv, d.Service, "update", "-A", string(serviceAttrsJSON))
stdOut, err := ggnCmd.CombinedOutput()
d.Log.WithFields(log.Fields{
"cmd": strings.Join(ggnCmd.Args, " "),
"out": string(stdOut),
}).Debug("Executing external command")
// stdOut, err := ggnCmd.CombinedOutput()

Expand Down

0 comments on commit 66c824c

Please sign in to comment.