mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Output date filter from cache log at debug level. Remove unused imports
Other logs not directly useful to user have already been converted
to debug log levels in 1ae4016. Just forgot to convert this log line too
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# Standard Packages
|
# Standard Packages
|
||||||
import re
|
import re
|
||||||
import time
|
|
||||||
import logging
|
import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from datetime import timedelta, datetime
|
from datetime import timedelta, datetime
|
||||||
@@ -67,7 +66,7 @@ class DateFilter(BaseFilter):
|
|||||||
# return results from cache if exists
|
# return results from cache if exists
|
||||||
cache_key = tuple(query_daterange)
|
cache_key = tuple(query_daterange)
|
||||||
if cache_key in self.cache:
|
if cache_key in self.cache:
|
||||||
logger.info(f"Return date filter results from cache")
|
logger.debug(f"Return date filter results from cache")
|
||||||
entries_to_include = self.cache[cache_key]
|
entries_to_include = self.cache[cache_key]
|
||||||
return query, entries_to_include
|
return query, entries_to_include
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# Standard Packages
|
# Standard Packages
|
||||||
import re
|
import re
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import time
|
|
||||||
import logging
|
import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
# Standard Packages
|
# Standard Packages
|
||||||
import re
|
import re
|
||||||
import time
|
|
||||||
import logging
|
import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# System Packages
|
# System Packages
|
||||||
from copy import deepcopy
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# External Packages
|
# External Packages
|
||||||
|
|||||||
Reference in New Issue
Block a user