Skip to content

Replace glog output in builders at V(2) and above with straight stderr output. - #8786

Merged
openshift-bot merged 3 commits into
openshift:masterfrom
smarterclayton:manage_build_logs
May 16, 2016
Merged

openshift-bot merged 3 commits into
openshift:masterfrom
smarterclayton:manage_build_logs

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

Also perform some minor cleanups along the way.

@bparees

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

dockercmd "github.com/docker/docker/builder/command"
"github.com/docker/docker/builder/parser"
docker "github.com/fsouza/go-dockerclient"
"github.com/golang/glog"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this import is still needed isn't it? or the util wrapper

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the package "common" has a local var glog that is the replacement.

On Sat, May 7, 2016 at 7:43 PM, Ben Parees [email protected] wrote:

In pkg/build/builder/docker.go
#8786 (comment):

@@ -12,7 +12,6 @@ import (
dockercmd "github.com/docker/docker/builder/command"
"github.com/docker/docker/builder/parser"
docker "github.com/fsouza/go-dockerclient"

  • "github.com/golang/glog"

this import is still needed isn't it? or the util wrapper

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8786/files/9725d5171cdd040a8f619a1a7d7b332d9228209b#r62424311

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nm, i see what you've done here, but i don't like it :)

(global var that matches the name of what most people will assume is a package reference)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess i can appreciate keeping the name the same so people writing code don't have to think about it, but i also dislike the idea that people are using it w/o realizing it's different.
[shrug].

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's mostly transitional, to avoid me forcing you to refactor all this code
right now.

On Sat, May 7, 2016 at 7:54 PM, Ben Parees [email protected] wrote:

In pkg/build/builder/docker.go
#8786 (comment):

@@ -12,7 +12,6 @@ import (
dockercmd "github.com/docker/docker/builder/command"
"github.com/docker/docker/builder/parser"
docker "github.com/fsouza/go-dockerclient"

  • "github.com/golang/glog"

i guess i can appreciate keeping the name the same so people writing code
don't have to think about it, but i also dislike the idea that people are
using it w/o realizing it's different.
[shrug].

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8786/files/9725d5171cdd040a8f619a1a7d7b332d9228209b#r62424375

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how thoughtful :) in that case i like it.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Any other comments?

@bparees

bparees commented May 16, 2016

Copy link
Copy Markdown
Contributor

lgtm aside from squashing

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Commits are roughly separated anyways

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Crap, stupid buttons

Reduces the cost of switching nested libraries from glog.
The main builders should be using an output stream passed in to them,
and should not be glog.Fatalfing. Allow builds to run on non-Linux
systems. Perform validation on the incoming build to handle bad input
and protect against malicious build injection. Cleanup the commands
slightly.
@smarterclayton

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

openshift-bot commented May 16, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5919/) (Image: devenv-rhel7_4209)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 8e02257

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 8e02257

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot
openshift-bot merged commit 55cd2e4 into openshift:master May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants