File tree Expand file tree Collapse file tree
samples/nodejs/copilotstudio-client/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,12 +100,18 @@ const createClient = async (): Promise<CopilotStudioClient> => {
100100 const copilotClient = new CopilotStudioClient ( settings , token )
101101
102102 // Display client information using new helper utilities
103+ const safeSettingsForLog = {
104+ ...settings ,
105+ enableDiagnostics : settings . enableDiagnostics ?? false ,
106+ appClientSecret : settings . appClientSecret ? '[REDACTED]' : ''
107+ }
108+
103109 console . log ( '\n=== Copilot Studio Client Information ===' )
104110 console . log ( `Version: ${ UserAgentHelper . getVersion ( ) } ` )
105111 console . log ( `User Agent: ${ UserAgentHelper . getProductInfo ( ) } ` )
106112 console . log ( `Token Scope: ${ ScopeHelper . getScopeFromSettings ( settings ) } ` )
107113 console . log ( `Diagnostics Enabled: ${ settings . enableDiagnostics ?? false } ` )
108- console . log ( `Settings: ${ JSON . stringify ( settings , null , 2 ) } ` )
114+ console . log ( `Settings: ${ JSON . stringify ( safeSettingsForLog , null , 2 ) } ` )
109115 console . log ( '=========================================\n' )
110116
111117 return copilotClient
You can’t perform that action at this time.
0 commit comments