mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 20:14:44 -07:00
fix(cli): remove settings migration console logs (#7325)
This commit is contained in:
@@ -667,7 +667,6 @@ export function loadSettings(workspaceDir: string): LoadedSettings {
|
|||||||
|
|
||||||
let settingsObject = rawSettings as Record<string, unknown>;
|
let settingsObject = rawSettings as Record<string, unknown>;
|
||||||
if (needsMigration(settingsObject)) {
|
if (needsMigration(settingsObject)) {
|
||||||
console.error(`Legacy settings file detected at: ${filePath}`);
|
|
||||||
const migratedSettings = migrateSettingsToV2(settingsObject);
|
const migratedSettings = migrateSettingsToV2(settingsObject);
|
||||||
if (migratedSettings) {
|
if (migratedSettings) {
|
||||||
if (MIGRATE_V2_OVERWRITE) {
|
if (MIGRATE_V2_OVERWRITE) {
|
||||||
@@ -678,9 +677,6 @@ export function loadSettings(workspaceDir: string): LoadedSettings {
|
|||||||
JSON.stringify(migratedSettings, null, 2),
|
JSON.stringify(migratedSettings, null, 2),
|
||||||
'utf-8',
|
'utf-8',
|
||||||
);
|
);
|
||||||
console.log(
|
|
||||||
`Successfully migrated and saved settings file: ${filePath}`,
|
|
||||||
);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(
|
console.error(
|
||||||
`Error migrating settings file on disk: ${getErrorMessage(
|
`Error migrating settings file on disk: ${getErrorMessage(
|
||||||
@@ -689,9 +685,6 @@ export function loadSettings(workspaceDir: string): LoadedSettings {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
|
||||||
`Successfully migrated settings for ${filePath} in-memory for the current session.`,
|
|
||||||
);
|
|
||||||
migratedInMemorScopes.add(scope);
|
migratedInMemorScopes.add(scope);
|
||||||
}
|
}
|
||||||
settingsObject = migratedSettings;
|
settingsObject = migratedSettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user