Skip to content

Commit 204f202

Browse files
committed
remove debug logs
Signed-off-by: Grant Linville <[email protected]>
1 parent 53b1bba commit 204f202

File tree

1 file changed

+0
-3
lines changed
  • credential-stores/pkg/common

1 file changed

+0
-3
lines changed

credential-stores/pkg/common/db.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func NewDatabase(ctx context.Context, db *gorm.DB) (Database, error) {
4040
if err := db.AutoMigrate(&GptscriptCredential{}); err != nil {
4141
return Database{}, fmt.Errorf("failed to auto migrate GptscriptCredential: %w", err)
4242
}
43-
fmt.Println("migrating context")
4443
if err := migrateContext(db); err != nil {
4544
return Database{}, fmt.Errorf("failed to migrate context: %w", err)
4645
}
@@ -79,7 +78,6 @@ func migrateContext(db *gorm.DB) error {
7978
continue
8079
}
8180

82-
fmt.Printf("migrating context for %s\n", cred.ServerURL)
8381
cred.Context = parts[1]
8482
if err := db.Save(&cred).Error; err != nil {
8583
return fmt.Errorf("failed to save credential: %w", err)
@@ -208,7 +206,6 @@ func (d Database) ListWithContexts(contexts []string) (map[string]string, error)
208206
if err = d.db.Where("context = ?", context).Find(&creds).Error; err != nil {
209207
return nil, fmt.Errorf("failed to list credentials: %w", err)
210208
}
211-
fmt.Printf("found %d credentials for context %s\n", len(creds), context)
212209
allCreds = append(allCreds, creds...)
213210
}
214211

0 commit comments

Comments
 (0)