Skip to content

Commit cd7380e

Browse files
committed
Merge pull request django-haystack#1349 from sbussetti/master
Fix logging call in `update_index`
2 parents bb07c17 + 0314413 commit cd7380e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haystack/management/commands/update_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ def do_update(backend, index, qs, start, end, total, verbosity=1, commit=True,
102102
error_msg += ' (pid %(pid)s): %(exc)s'
103103

104104
if retries >= max_retries:
105-
LOG.error(error_msg, exc_info=True, **error_context)
105+
LOG.error(error_msg, error_context, exc_info=True)
106106
raise
107107
elif verbosity >= 2:
108-
LOG.warning(error_msg, exc_info=True, **error_context)
108+
LOG.warning(error_msg, error_context, exc_info=True)
109109

110110
# If going to try again, sleep a bit before
111111
time.sleep(2 ** retries)

0 commit comments

Comments
 (0)