Skip to content

Commit

Permalink
Merge pull request #323 from thockin/log-uid-gid
Browse files Browse the repository at this point in the history
Log info about UID, GID, and HOME for debug
  • Loading branch information
k8s-ci-robot authored Jan 7, 2021
2 parents 6f3d9e4 + e2bc4c3 commit 6f8ecc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/git-sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f8ecc6

Please sign in to comment.