From e2bc4c3ea0e32b471547f566195adc0b5c36b874 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 5 Jan 2021 16:35:11 -0800 Subject: [PATCH] Log info about UID, GID, and HOME for debug --- cmd/git-sync/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index ba8e0624d..78af66921 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -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)