Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2018-03-19 16:57:15 +0300
committerAhmad Sherif <ahmad.m.sherif@gmail.com>2018-03-19 16:57:15 +0300
commit174d1169baa8bfb60aba47dd47fc09277caa98a4 (patch)
treec4aace5644f5b018506a5f9ee5b868aeb60df89b
parent4e7828c9ec52e324d60b0f743963f859de961e20 (diff)
Log process PID in 'spawn complete' entry
-rw-r--r--CHANGELOG.md2
-rw-r--r--internal/command/command.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b5cf12311..12226be91 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
UNRELEASED
+- Log process PID in 'spawn complete' entry
+ https://gitlab.com/gitlab-org/gitaly/merge_requests/637
- Vendor gitlab_git at 79aa00321063da
https://gitlab.com/gitlab-org/gitaly/merge_requests/633
diff --git a/internal/command/command.go b/internal/command/command.go
index b60ec129d..0f47c3213 100644
--- a/internal/command/command.go
+++ b/internal/command/command.go
@@ -234,6 +234,7 @@ func (c *Command) logProcessComplete(ctx context.Context, exitCode int) {
realTime := time.Since(c.startTime)
entry := grpc_logrus.Extract(ctx).WithFields(log.Fields{
+ "pid": cmd.ProcessState.Pid(),
"path": cmd.Path,
"args": cmd.Args,
"command.exitCode": exitCode,