18348: Add ClusterID field to service log entries.
[arvados.git] / lib / service / cmd.go
index 880799b348b57b2e9d485711c2b49ccd2f1757e4..dbafc89fe4792d90b30e5fa70ec18b43a0c5107d 100644 (file)
@@ -105,7 +105,8 @@ func (c *command) RunCommand(prog string, args []string, stdin io.Reader, stdout
        // logger with a new one according to the logging config.
        log = ctxlog.New(stderr, cluster.SystemLogs.Format, cluster.SystemLogs.LogLevel)
        logger := log.WithFields(logrus.Fields{
-               "PID": os.Getpid(),
+               "PID":       os.Getpid(),
+               "ClusterID": cluster.ClusterID,
        })
        ctx := ctxlog.Context(c.ctx, logger)