From 7dcdadde7916ca09542cb1a788db1e27df6b3594 Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Thu, 11 Jan 2024 21:11:13 +0530 Subject: [PATCH] Add debug log line for when bundle init is run from non-TTY interface (#1117) --- libs/template/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/template/config.go b/libs/template/config.go index 6b6e7ed3..14e09fe5 100644 --- a/libs/template/config.go +++ b/libs/template/config.go @@ -7,6 +7,7 @@ import ( "github.com/databricks/cli/libs/cmdio" "github.com/databricks/cli/libs/jsonschema" + "github.com/databricks/cli/libs/log" "golang.org/x/exp/maps" ) @@ -247,6 +248,7 @@ func (c *config) promptOrAssignDefaultValues(r *renderer) error { if cmdio.IsOutTTY(c.ctx) && cmdio.IsInTTY(c.ctx) && !cmdio.IsGitBash(c.ctx) { return c.promptForValues(r) } + log.Debugf(c.ctx, "Terminal is not TTY. Assigning default values to template input parameters") return c.assignDefaultValues(r) }