Skip to content

Commit f5368dc

Browse files
Merge pull request #4 from kodekoding/feat/transactions-db
fix(database): remove unnecessary debug log
2 parents 6c0ff66 + 4ceb609 commit f5368dc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

go/database/sql.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"database/sql"
66
"encoding/json"
77
"fmt"
8-
"log"
98
"reflect"
109
"strings"
1110
"sync"
@@ -63,7 +62,7 @@ func Connect(cfg *SQLConfig) (*SQL, error) {
6362
}
6463

6564
func connectDB(cfg *SQLConfig) (*sqlx.DB, error) {
66-
log.Println(cfg.connString)
65+
6766
db, err := sqlx.Connect(cfg.Engine, cfg.connString)
6867
if err != nil {
6968
return nil, errors.Wrap(err, "phastos.database.Connect")
@@ -122,7 +121,6 @@ func (this *SQL) Read(ctx context.Context, opts *QueryOpts, additionalParams ...
122121
query += addOnQuery
123122
query = this.Rebind(query)
124123

125-
log.Println(query)
126124
if opts.IsList {
127125
if err = this.Follower.SelectContext(ctx, opts.ResultStruct, query, params...); err != nil {
128126
_, err = this.sendNilResponse(err, "phastos.database.Read.SelectContext", opts)

0 commit comments

Comments
 (0)