Skip to content

Commit cc637f7

Browse files
authored
xds: log bootstrap config missing warning from env var only when debugging (#8039)
1 parent 3409a56 commit cc637f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xds/internal/xdsclient/clientimpl.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ func init() {
101101
// attempting to create an xDS client, else xDS client creation will fail.
102102
config, err := bootstrap.GetConfiguration()
103103
if err != nil {
104-
logger.Warningf("Failed to read xDS bootstrap config from env vars: %v", err)
104+
if logger.V(2) {
105+
logger.Infof("Failed to read xDS bootstrap config from env vars: %v", err)
106+
}
105107
DefaultPool = &Pool{clients: make(map[string]*clientRefCounted)}
106108
return
107109
}

0 commit comments

Comments
 (0)