mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 06:31:01 -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>;
|
||||
if (needsMigration(settingsObject)) {
|
||||
console.error(`Legacy settings file detected at: ${filePath}`);
|
||||
const migratedSettings = migrateSettingsToV2(settingsObject);
|
||||
if (migratedSettings) {
|
||||
if (MIGRATE_V2_OVERWRITE) {
|
||||
@@ -678,9 +677,6 @@ export function loadSettings(workspaceDir: string): LoadedSettings {
|
||||
JSON.stringify(migratedSettings, null, 2),
|
||||
'utf-8',
|
||||
);
|
||||
console.log(
|
||||
`Successfully migrated and saved settings file: ${filePath}`,
|
||||
);
|
||||
} catch (e) {
|
||||
console.error(
|
||||
`Error migrating settings file on disk: ${getErrorMessage(
|
||||
@@ -689,9 +685,6 @@ export function loadSettings(workspaceDir: string): LoadedSettings {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
console.log(
|
||||
`Successfully migrated settings for ${filePath} in-memory for the current session.`,
|
||||
);
|
||||
migratedInMemorScopes.add(scope);
|
||||
}
|
||||
settingsObject = migratedSettings;
|
||||
|
||||
Reference in New Issue
Block a user