Skip to content

Commit

Permalink
search/bleve: actually log the type of the correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed Dec 21, 2024
1 parent 707fbd1 commit 5a430b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/bleve/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func NewQuery(ctx context.Context, s string) (query.Query, error) {

dq, ok := bq.Should.(*query.DisjunctionQuery)
if !ok {
zerolog.Ctx(ctx).Warn().Str("type", fmt.Sprintf("%T", q)).Msg("query was not a DisjunctionQuery")
zerolog.Ctx(ctx).Warn().Str("type", fmt.Sprintf("%T", bq.Should)).Msg("query was not a DisjunctionQuery")
return q, nil
}

Expand All @@ -337,7 +337,7 @@ func NewQuery(ctx context.Context, s string) (query.Query, error) {
// move the should (OR) into the must (AND) query set
qq.AddMust(dq.Disjuncts...)
default:
zerolog.Ctx(ctx).Warn().Str("type", fmt.Sprintf("%T", q)).Msg("query is unknown type")
zerolog.Ctx(ctx).Warn().Str("type", fmt.Sprintf("%T", bq.Must)).Msg("query is unknown type")
return q, nil
}

Expand Down

0 comments on commit 5a430b9

Please sign in to comment.