Skip to content

Commit

Permalink
change log
Browse files Browse the repository at this point in the history
  • Loading branch information
zekehuntergreen committed Mar 20, 2024
1 parent d4b8e71 commit b1eb240
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/app/controllers/api/Search.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class Search(override val controllerComponents: AuthControllerComponents, userMa
def search() = ApiAction.attempt { req: UserIdentityRequest[_] =>
val q = req.queryString.getOrElse("q", Seq("")).head
val proposedParams = Search.buildSearchParameters(q, req)
proposedParams.workspaceContext.map(wc => logger.info(req.user.asLogMarker, s"Performing workspace search"))
logger.info(s"searching. workspace context is ${proposedParams.workspaceContext.isDefined}")
if (proposedParams.workspaceContext.isDefined){
logger.info(req.user.asLogMarker, "Performing workspace search")
}

buildSearch(req.user, proposedParams, proposedParams.workspaceContext).flatMap { case (verifiedParams, context) =>
val returnEmptyResult = Search.shouldReturnEmptyResult(proposedParams, verifiedParams, context)
Expand Down

0 comments on commit b1eb240

Please sign in to comment.