Skip to content

Commit

Permalink
fix: Fix event logging to log proper start and end time (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuon authored Jan 9, 2024
1 parent 585c74c commit 983065a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion edxsearch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" Container module for testing / demoing search """

__version__ = '3.8.1'
__version__ = '3.8.2'
8 changes: 4 additions & 4 deletions search/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ def emit_api_timing_event(search_term, course_id, filter_generation_timer, proce
"elapsed": filter_generation_timer.elapsed_time,
},
"processing_time": {
"start": processing_timer.start_time_string,
"end": processing_timer.start_time_string,
"start": processing_timer.start_time,
"end": processing_timer.end_time,
"elapsed": processing_timer.elapsed_time,
},
"search_time": {
"start": search_timer.start_time_string,
"end": search_timer.start_time_string,
"start": search_timer.start_time,
"end": search_timer.end_time,
"elapsed": search_timer.elapsed_time,
},
})
Expand Down
8 changes: 4 additions & 4 deletions search/tests/test_api_timing_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def test_perform_search(self):
"elapsed": filter_generation_timer.elapsed_time,
},
"processing_time": {
"start": processing_timer.start_time_string,
"end": processing_timer.start_time_string,
"start": processing_timer.start_time,
"end": processing_timer.end_time,
"elapsed": processing_timer.elapsed_time,
},
"search_time": {
"start": search_timer.start_time_string,
"end": search_timer.start_time_string,
"start": search_timer.start_time,
"end": search_timer.end_time,
"elapsed": search_timer.elapsed_time,
},
})
Expand Down

0 comments on commit 983065a

Please sign in to comment.