Browse Source

remove debug statements

Alexander Belanger 4 năm trước cách đây
mục cha
commit
f4e07b4ef7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      internal/repository/gorm/notification.go

+ 2 - 2
internal/repository/gorm/notification.go

@@ -65,7 +65,7 @@ func (repo JobNotificationConfigRepository) CreateNotificationConfig(am *models.
 	// if the count is greater than 1000, remove the lowest-order events to implement a
 	// basic fixed-length buffer
 	if count >= 1000 {
-		err := repo.db.Debug().Exec(`
+		err := repo.db.Exec(`
 			  DELETE FROM job_notification_configs 
 			  WHERE project_id = ? AND cluster_id = ? AND 
 			  id NOT IN (
@@ -78,7 +78,7 @@ func (repo JobNotificationConfigRepository) CreateNotificationConfig(am *models.
 		}
 	}
 
-	if err := repo.db.Debug().Create(am).Error; err != nil {
+	if err := repo.db.Create(am).Error; err != nil {
 		return nil, err
 	}