diff options
author | uvok cheetah | 2023-12-08 17:11:16 +0000 |
---|---|---|
committer | uvok cheetah | 2023-12-08 17:11:16 +0000 |
commit | 3e9e0a3a1f0f786ff3773717da1ca6922732dc02 (patch) | |
tree | a19aff3c7df9fb514efad77b82e8ac910da69b23 /persistence/sqlite/sqliteRepository.go | |
parent | 16f43836594f2400e52d21da61b6dd32feca9b7d (diff) |
Remove debug print
Diffstat (limited to 'persistence/sqlite/sqliteRepository.go')
-rw-r--r-- | persistence/sqlite/sqliteRepository.go | 9 |
1 files changed, 1 insertions, 8 deletions
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 } |