Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
3039bed6
Commit
3039bed6
authored
Aug 14, 2017
by
Clinton Blackburn
Committed by
Clinton Blackburn
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging stacktrace for all calls to EdxElasticsearchSearchBackend.setup()
LEARNER-2188
parent
6dac7a77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
course_discovery/apps/edx_haystack_extensions/backends.py
+9
-0
No files found.
course_discovery/apps/edx_haystack_extensions/backends.py
View file @
3039bed6
import
logging
import
traceback
from
haystack.backends.elasticsearch_backend
import
ElasticsearchSearchBackend
,
ElasticsearchSearchEngine
from
course_discovery.apps.edx_haystack_extensions.elasticsearch_boost_config
import
get_elasticsearch_boost_config
logger
=
logging
.
getLogger
(
__name__
)
class
SimpleQuerySearchBackendMixin
(
object
):
"""
...
...
@@ -128,6 +133,10 @@ class EdxElasticsearchSearchBackend(SimpleQuerySearchBackendMixin, NonClearingSe
return
super
()
.
search
(
query_string
,
**
kwargs
)
def
setup
(
self
):
logger
.
info
(
'DEBUG: EdxElasticsearchSearchBackend.setup() called:
%
s'
,
'
\n
'
.
join
(
traceback
.
format_stack
()))
return
super
()
.
setup
()
class
EdxElasticsearchSearchEngine
(
ElasticsearchSearchEngine
):
backend
=
EdxElasticsearchSearchBackend
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment