Skip to content

Instantly share code, notes, and snippets.

@tonysun83
Created September 29, 2014 20:40
Show Gist options
  • Save tonysun83/65f1a05db27b814dd801 to your computer and use it in GitHub Desktop.
Save tonysun83/65f1a05db27b814dd801 to your computer and use it in GitHub Desktop.
Tonys-MacBook-Pro:dreyfus llamage$ git diff
diff --git a/src/dreyfus_httpd.erl b/src/dreyfus_httpd.erl
index b4f76bf..27e9acc 100644
--- a/src/dreyfus_httpd.erl
+++ b/src/dreyfus_httpd.erl
@@ -16,6 +16,7 @@ handle_search_req(Req, Db, DDoc) ->
handle_search_req(#httpd{method=Method, path_parts=[_, _, _, _, IndexName]}=Req
,#db{name=DbName}=Db, DDoc, RetryCount, RetryPause)
when Method == 'GET'; Method == 'POST' ->
+ twig:log(notice, "Initiate handle_search_req", []),
QueryArgs = #index_query_args{
q = Query,
include_docs = IncludeDocs,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment