Log info about UID, GID, and HOME for debug

This commit is contained in:
Tim Hockin 2021-01-05 16:35:11 -08:00
parent b631e42946
commit e2bc4c3ea0
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)