Skip to content

Commit 6abf734

Browse files
committed
Fixed a long-time bug where the Whoosh backend didn't have a log attribute.
1 parent b95686f commit 6abf734

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

haystack/backends/whoosh_backend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import os
23
import re
34
import shutil
@@ -81,6 +82,8 @@ def __init__(self, site=None):
8182
if self.use_file_storage and not hasattr(settings, 'HAYSTACK_WHOOSH_PATH'):
8283
raise ImproperlyConfigured('You must specify a HAYSTACK_WHOOSH_PATH in your settings.')
8384

85+
self.log = logging.getLogger('haystack')
86+
8487
def setup(self):
8588
"""
8689
Defers loading until needed.

0 commit comments

Comments
 (0)