From 34b5a3fccfb57a793ce5659151ec33acec024e4c Mon Sep 17 00:00:00 2001 From: Wes Date: Thu, 14 Mar 2024 14:45:10 -0700 Subject: [PATCH] chore: improve dev deployment messaging (#1091) Fixes #1077 --- buildengine/engine.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/buildengine/engine.go b/buildengine/engine.go index c954b425bb..da4c980581 100644 --- a/buildengine/engine.go +++ b/buildengine/engine.go @@ -7,6 +7,7 @@ import ( "fmt" "path/filepath" "runtime" + "strings" "time" "connectrpc.com/connect" @@ -270,10 +271,12 @@ func (e *Engine) watchForModuleChanges(ctx context.Context, period time.Duration moduleHashes[change.Name] = hash modulesToDeploy := e.getDependentModules(change.Name) - logger.Infof("%s's schema changed; redeploying: %+v", change.Name, modulesToDeploy) - err = e.buildAndDeploy(ctx, 1, true, modulesToDeploy...) - if err != nil { - logger.Errorf(err, "deploy %s failed", change.Name) + if len(modulesToDeploy) > 0 { + logger.Infof("%s's schema changed; redeploying %s", change.Name, strings.Join(modulesToDeploy, ", ")) + err = e.buildAndDeploy(ctx, 1, true, modulesToDeploy...) + if err != nil { + logger.Errorf(err, "deploy %s failed", change.Name) + } } }