18348: Add ClusterID field to service log entries.
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.go
index ff1077fae63ace1703e8c66ad95e54bb32d5a49a..84105e1fc77e5315df0ab1a7d3ba8d6b219f9b99 100644 (file)
@@ -114,6 +114,8 @@ func (disp *Dispatcher) configure(prog string, args []string) error {
                return fmt.Errorf("config error: %s", err)
        }
 
+       disp.logger = disp.logger.WithField("ClusterID", disp.cluster.ClusterID)
+
        disp.Client.APIHost = disp.cluster.Services.Controller.ExternalURL.Host
        disp.Client.AuthToken = disp.cluster.SystemRootToken
        disp.Client.Insecure = disp.cluster.TLS.Insecure