mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
rework most of the logging
This commit is contained in:
parent
0d3ab3aaf7
commit
431d4fd8e4
18 changed files with 80 additions and 71 deletions
|
|
@ -58,6 +58,9 @@ from .serialisers import (
|
|||
)
|
||||
|
||||
|
||||
logger = logging.getLogger("paperless.api")
|
||||
|
||||
|
||||
class IndexView(TemplateView):
|
||||
template_name = "index.html"
|
||||
|
||||
|
|
@ -488,7 +491,7 @@ class SearchView(APIView):
|
|||
try:
|
||||
doc = Document.objects.get(id=r['id'])
|
||||
except Document.DoesNotExist:
|
||||
logging.getLogger(__name__).warning(
|
||||
logger.warning(
|
||||
f"Search index returned a non-existing document: "
|
||||
f"id: {r['id']}, title: {r['title']}. "
|
||||
f"Search index needs reindex."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue