From 3e9e0a3a1f0f786ff3773717da1ca6922732dc02 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Fri, 8 Dec 2023 17:11:16 +0000 Subject: Remove debug print --- persistence/sqlite/sqliteRepository.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'persistence/sqlite') diff --git a/persistence/sqlite/sqliteRepository.go b/persistence/sqlite/sqliteRepository.go index f505c19..5950d51 100644 --- a/persistence/sqlite/sqliteRepository.go +++ b/persistence/sqlite/sqliteRepository.go @@ -10,10 +10,6 @@ import ( "uvok.de/go/training_fellow/registration" ) -var ( - debug bool = true -) - type SqliteRepository struct { FileName string context context.Context @@ -31,7 +27,7 @@ func (repo *SqliteRepository) SaveRegistration(registration *registration.Regist } defer db.Close() - res, err := db.ExecContext( + _, err = db.ExecContext( repo.context, `INSERT INTO registrations (reg_id, first_name, last_name, email, company, training_code, date, privacy_policy_accepted, confirmed) @@ -46,9 +42,6 @@ func (repo *SqliteRepository) SaveRegistration(registration *registration.Regist registration.PrivacyPolicyAccepted, registration.Confirmed) - if debug { - log.Printf("SQL result: %v", res) - } return err } -- cgit v1.2.3