Skip to content

Commit 2376dc4

Browse files
committed
Add more bad search logging
1 parent 98fa4cd commit 2376dc4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • share-api/src/Share/Postgres/Search/DefinitionSearch

share-api/src/Share/Postgres/Search/DefinitionSearch/Queries.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ globalDefinitionTokenSearch mayCaller mayUserFilter limit searchTokens preferred
497497
then Nothing
498498
else Just $ searchTokensToTsQuery returnTokens
499499
let orderClause = tokenSearchOrderClause True names mayReturnTokensText
500+
Logging.logInfoText ("NEEDLE: Performing global definition token search:" <> tShow ("caller" :: Text, mayCaller, "limit" :: Text, limit, "searchTokens" :: Text, searchTokens, "preferredArity" :: Text, preferredArity))
500501
rows <-
501502
queryListRows @(ProjectId, ReleaseId, Name, Hasql.Jsonb)
502503
[sql|
@@ -615,6 +616,8 @@ globalDefinitionNameSearch mayCaller mayUserFilter limit (Query query) = do
615616
let filters = case mayUserFilter of
616617
Just userId -> [sql| AND p.owner_user_id = #{userId} |]
617618
Nothing -> mempty
619+
620+
Logging.logInfoText ("NEEDLE: Performing global definition token search:" <> tShow ("caller" :: Text, mayCaller, "limit" :: Text, limit))
618621
rows <-
619622
queryListRows @(ProjectId, ReleaseId, Name, Hasql.Jsonb)
620623
[sql|

0 commit comments

Comments
 (0)