Skip to content

Commit

Permalink
added log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulkireev committed Sep 21, 2024
1 parent b658405 commit fe870c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def get_context_data(self, **kwargs):
def search_products(request):
query = request.GET.get("query", "")
if len(query) > 2:
logger.info("User Search Initiated", query=query)
products = (
Product.objects.annotate(
name_match=Case(
Expand Down

0 comments on commit fe870c8

Please sign in to comment.