Merge pull request #323 from thockin/log-uid-gid

Log info about UID, GID, and HOME for debug
This commit is contained in:
Kubernetes Prow Robot 2021-01-07 05:59:45 -08:00 committed by GitHub
commit 6f8ecc6caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -414,7 +414,12 @@ func main() {
}
// From here on, output goes through logging.
log.V(0).Info("starting up", "pid", os.Getpid(), "args", os.Args)
log.V(0).Info("starting up",
"pid", os.Getpid(),
"uid", os.Getuid(),
"gid", os.Getgid(),
"home", os.Getenv("HOME"),
"args", os.Args)
if _, err := exec.LookPath(*flGitCmd); err != nil {
log.Error(err, "ERROR: git executable not found", "git", *flGitCmd)