File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ export class DataConnectEmulator implements EmulatorInstance {
362362 account ,
363363 EmulatorLogger . forEmulator ( Emulators . DATACONNECT ) ,
364364 "dataconnect" ,
365+ true ,
365366 ) ;
366367 return { ...process . env , ...extraEnv , ...credsEnv } ;
367368 }
Original file line number Diff line number Diff line change @@ -65,15 +65,17 @@ export async function getCredentialsEnvironment(
6565 account : Account | undefined ,
6666 logger : EmulatorLogger ,
6767 logLabel : string ,
68+ silent : boolean = false ,
6869) : Promise < Record < string , string > > {
6970 // Provide default application credentials when appropriate
7071 const credentialEnv : Record < string , string > = { } ;
7172 if ( await hasDefaultCredentials ( ) ) {
72- logger . logLabeled (
73- "WARN" ,
74- logLabel ,
75- `Application Default Credentials detected. Non-emulated services will access production using these credentials. Be careful!` ,
76- ) ;
73+ ! silent &&
74+ logger . logLabeled (
75+ "WARN" ,
76+ logLabel ,
77+ `Application Default Credentials detected. Non-emulated services will access production using these credentials. Be careful!` ,
78+ ) ;
7779 } else if ( account ) {
7880 const defaultCredPath = await getCredentialPathAsync ( account ) ;
7981 if ( defaultCredPath ) {
You can’t perform that action at this time.
0 commit comments