@@ -28,7 +28,9 @@ func (l *loadedEnv) Name() string {
2828
2929// Configure implemets config.Loader interface
3030func (l * loadedEnv ) Configure (cfg * config.Config ) error {
31+ ctx := context .Background ()
3132 if cfg .IsAzure () {
33+ logger .Debugf (ctx , "Setting credentials for Azure Databricks" )
3234 cfg .Credentials = l .v .creds
3335 }
3436 for _ , a := range config .ConfigAttributes {
@@ -37,6 +39,7 @@ func (l *loadedEnv) Configure(cfg *config.Config) error {
3739 if ! ok {
3840 continue
3941 }
42+ logger .Debugf (ctx , "Loaded from environment variable: %s" , ev )
4043 // TODO: redact only sensitive values out
4144 err := a .SetS (cfg , v )
4245 if err != nil {
@@ -89,6 +92,7 @@ func (l *loadedEnv) Start(ctx context.Context) (context.Context, func(), error)
8992 // not to conflict with metadata service,
9093 // erase any auth env vars
9194 v = ""
95+ logger .Debugf (ctx , "Erasing auth variable for subprocess: %s" , k )
9296 }
9397 ctx = env .Set (ctx , k , v )
9498 }
@@ -132,6 +136,7 @@ func (l *loadedEnv) metadataServer(seed *config.Config) *httptest.Server {
132136 })
133137 return
134138 }
139+ logger .Debugf (ctx , "Metadata for host: %s" , hostInHeader )
135140 req := & http.Request {Header : http.Header {}}
136141 err := configs .Authenticate (req )
137142 if err != nil {
0 commit comments