-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override glog's default for the -logtostderr flag #664
Comments
In case the Tweet gets deleted, it's just putting this into the main module and removing the CLI arguments: func init() {
flag.Set("logtostderr", "true")
} |
I'd like to propose that we start sending all glog message to |
Note that we can still default sending glog message to /dev/null using the |
We should enable glog logging to stderr if |
I took some time to read the glog source, and unfortunately it appears that it's not possible for us to disable glog logs on a readonly filesystem. This relates to kubernetes/kubernetes#61006. Glog writes its logs to either stderr or to a directory on disk, and we have to write to stderr since our processes are running inside scratch containers and can't write to disk. I'll still use this issue to track overriding glog's default settings to log to stderr automatically, which will allow us to remove the |
In #524 we started setting the
-logtostderr=true
flag on all of the controller components in the kubernetes configs that are output by theconduit install
command. This fixed the issue described in #522, but it would be better to fix this in a way that didn't require modifying every command line invocation of every controller component.We should be able to call
flag.Set
in our code to accomplish this, per: https://twitter.com/fatih/status/980918398417817600The text was updated successfully, but these errors were encountered: