From 5b74a5629451ad51cabe658761bed3b2256678d0 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 31 Jan 2023 15:30:46 +0100 Subject: [PATCH] resolve PR: include the service info in the log message --- pkg/config/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/config/app.go b/pkg/config/app.go index 306d5832..bb06e10d 100644 --- a/pkg/config/app.go +++ b/pkg/config/app.go @@ -465,11 +465,12 @@ func ExposeAllEnv(stackName string, compose *composetypes.Config, appEnv AppEnv) } } -// add a label to signal that a deploy is connected with a recipe +// SetRecipeLabel adds the label 'coop-cloud.${STACK_NAME}.recipe=${RECIPE}' to the app container +// to signal which recipe is connected to the deployed app func SetRecipeLabel(compose *composetypes.Config, stackName string, recipe string) { for _, service := range compose.Services { if service.Name == "app" { - logrus.Debugf("set recipe label to %s", recipe) + logrus.Debugf("set recipe label 'coop-cloud.%s.recipe' to %s for %s", stackName, recipe, stackName) labelKey := fmt.Sprintf("coop-cloud.%s.recipe", stackName) service.Deploy.Labels[labelKey] = recipe }