Skip to content
Snippets Groups Projects
Commit 7a89f7b5 authored by Morgan Bazalgette's avatar Morgan Bazalgette
Browse files

debugging search queries

parent 994325db
Branches
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ import ( ...@@ -4,6 +4,8 @@ import (
"database/sql" "database/sql"
"fmt" "fmt"
"os"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/osuripple/cheesegull" "github.com/osuripple/cheesegull"
) )
...@@ -95,6 +97,10 @@ func (p *provider) SearchSets(opts cheesegull.SearchOptions) ([]cheesegull.Beatm ...@@ -95,6 +97,10 @@ func (p *provider) SearchSets(opts cheesegull.SearchOptions) ([]cheesegull.Beatm
queryBase, params, err := sqlx.In(queryBase, params...) queryBase, params, err := sqlx.In(queryBase, params...)
if os.Getenv("DEBUG") == "1" {
fmt.Printf("search: %q | %#v\n", queryBase, params)
}
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment