Skip to content

Commit 07cdb1f

Browse files
committed
hide details from logs
1 parent ad89f88 commit 07cdb1f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/kernels/deepnote/deepnoteServerStarter.node.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,22 +159,20 @@ export class DeepnoteServerStarter implements IDeepnoteServerStarter, IExtension
159159

160160
// Inject SQL integration environment variables
161161
if (this.sqlIntegrationEnvVars) {
162-
logger.info(`DeepnoteServerStarter: Injecting SQL integration env vars for ${deepnoteFileUri.toString()}`);
162+
logger.debug(`DeepnoteServerStarter: Injecting SQL integration env vars for ${deepnoteFileUri.toString()}`);
163163
try {
164164
const sqlEnvVars = await this.sqlIntegrationEnvVars.getEnvironmentVariables(deepnoteFileUri, token);
165165
if (sqlEnvVars && Object.keys(sqlEnvVars).length > 0) {
166-
logger.debug(
167-
`DeepnoteServerStarter: Injecting SQL env vars: ${Object.keys(sqlEnvVars).join(', ')}`
168-
);
166+
logger.debug(`DeepnoteServerStarter: Injecting ${Object.keys(sqlEnvVars).length} SQL env vars`);
169167
Object.assign(env, sqlEnvVars);
170168
} else {
171169
logger.debug('DeepnoteServerStarter: No SQL integration env vars to inject');
172170
}
173171
} catch (error) {
174-
logger.error('DeepnoteServerStarter: Failed to get SQL integration env vars', error);
172+
logger.error('DeepnoteServerStarter: Failed to get SQL integration env vars', error.message);
175173
}
176174
} else {
177-
logger.info('DeepnoteServerStarter: SqlIntegrationEnvironmentVariablesProvider not available');
175+
logger.debug('DeepnoteServerStarter: SqlIntegrationEnvironmentVariablesProvider not available');
178176
}
179177

180178
// Remove PYTHONHOME if it exists (can interfere with venv)

0 commit comments

Comments
 (0)