Skip to content

Commit

Permalink
always flush glog before returning from build logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Mar 11, 2016
1 parent 36b80cb commit 9478e43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/build/builder/docker.go
Expand Up @@ -105,6 +105,7 @@ func (d *DockerBuilder) Build() error {
glog.Warningf("Failed to remove temporary build tag %v: %v", buildTag, err)
}

defer glog.Flush()
if push {
// Get the Docker push authentication
pushAuthConfig, authPresent := dockercfg.NewHelper().GetDockerAuth(
Expand Down
2 changes: 1 addition & 1 deletion pkg/build/builder/sti.go
Expand Up @@ -246,6 +246,7 @@ func (s *S2IBuilder) Build() error {
glog.Warningf("Failed to remove temporary build tag %v: %v", buildTag, err)
}

defer glog.Flush()
if push {
// Get the Docker push authentication
pushAuthConfig, authPresent := dockercfg.NewHelper().GetDockerAuth(
Expand Down Expand Up @@ -274,7 +275,6 @@ func (s *S2IBuilder) Build() error {
return errors.New(msg)
}
glog.Infof("Successfully pushed %s", pushTag)
glog.Flush()
}
return nil
}
Expand Down

0 comments on commit 9478e43

Please sign in to comment.