Skip to content

Commit 3c09502

Browse files
committed
feat: promote the debug log to info for clear communication please
1 parent dea754e commit 3c09502

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/platform/run.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ func newRunLogger(clients *shared.ClientFactory, cmd *cobra.Command) *logger.Log
183183
cmd.Println(style.Secondary(fmt.Sprintf("Manifest change detected: %s, reinstalling app...", path)))
184184
case "on_cloud_run_watch_manifest_change_reinstalled":
185185
cmd.Println(style.Secondary("App successfully reinstalled"))
186+
case "on_cloud_run_watch_manifest_change_skipped_remote":
187+
path := event.DataToString("cloud_run_watch_manifest_change_skipped")
188+
cmd.Println(style.Secondary(fmt.Sprintf("Manifest change detected: %s, but not updating app because manifest.source=remote", path)))
186189
case "on_cloud_run_watch_app_change":
187190
path := event.DataToString("cloud_run_watch_app_change")
188191
cmd.Println(style.Secondary(fmt.Sprintf("App change detected: %s, restarting server...", path)))

internal/pkg/platform/localserver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ func (r *LocalServer) WatchManifest(ctx context.Context, auth types.SlackAuth, a
407407
return
408408
case event := <-w.Event:
409409
if isRemoteManifest {
410-
r.clients.IO.PrintDebug(ctx, "Manifest file changed but not updating app because manifest.source=remote: %s", event.Path)
410+
r.log.Data["cloud_run_watch_manifest_change_skipped"] = event.Path
411+
r.log.Info("on_cloud_run_watch_manifest_change_skipped_remote")
411412
} else {
412413
r.log.Data["cloud_run_watch_manifest_change"] = event.Path
413414
r.log.Info("on_cloud_run_watch_manifest_change")

0 commit comments

Comments
 (0)