Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always let glog write to stderr not files
Related to projectcontour#959 Client-go uses glog even though Contour by itself doesn't. In the failure scenario, such as CRD types not registered, glog in client-go attempts to log to files under /tmp, which may not even exist (e.g in `scratch` Docker image) or not accessible (container started with non-root user etc.). And when that happens it'll crash the whole Contour process which should not happen. This change overrides the glog flag to let it always dumping to stderr, avoid logging to files which is not desired in container environment Signed-off-by: Qiu Yu <[email protected]>
- Loading branch information