This commit is contained in:
Ross Chapman 2023-12-05 19:49:38 -08:00
parent c65e165aeb
commit 0f6e567b21
5 changed files with 3 additions and 12 deletions

View file

@ -140,7 +140,7 @@ TEMPLATES = [
}, },
] ]
LOG_LEVEL = env("LOG_LEVEL", "DEBUG").upper() LOG_LEVEL = env("LOG_LEVEL", "INFO").upper()
# Override aspects of the default handler to our taste # Override aspects of the default handler to our taste
# See https://docs.djangoproject.com/en/3.2/topics/logging/#default-logging-configuration # See https://docs.djangoproject.com/en/3.2/topics/logging/#default-logging-configuration
# for a reference to the defaults we're overriding # for a reference to the defaults we're overriding
@ -194,7 +194,7 @@ LOGGING = {
# Add a bookwyrm-specific logger # Add a bookwyrm-specific logger
"bookwyrm": { "bookwyrm": {
"handlers": ["console"], "handlers": ["console"],
"level": DEBUG, "level": LOG_LEVEL,
}, },
}, },
} }

View file

@ -121,11 +121,8 @@
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}
{% endwith %} {% endwith %}
</h2> </h2>
{% if books|length > 0 %} {% if books|length > 0 %}
{% include 'shelf/search_filters.html' with user=user query=query %} {% include 'shelf/search_filters.html' with user=user query=query %}

View file

@ -9,7 +9,7 @@ from django.test import TestCase
from django.test.client import RequestFactory from django.test.client import RequestFactory
from bookwyrm import models, views from bookwyrm import models, views
from bookwyrm.book_search import SearchResult, search from bookwyrm.book_search import SearchResult
from bookwyrm.settings import DOMAIN from bookwyrm.settings import DOMAIN
from bookwyrm.tests.validate_html import validate_html from bookwyrm.tests.validate_html import validate_html

View file

@ -17,10 +17,6 @@ from bookwyrm.settings import PAGE_LENGTH
from bookwyrm.views.helpers import is_api_request, get_user_from_username from bookwyrm.views.helpers import is_api_request, get_user_from_username
from bookwyrm.book_search import search from bookwyrm.book_search import search
import logging
logger = logging.getLogger(__name__)
# pylint: disable=no-self-use # pylint: disable=no-self-use
class Shelf(View): class Shelf(View):
"""shelf page""" """shelf page"""

View file

@ -21,8 +21,6 @@ services:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
networks: networks:
- main - main
ports:
- "5432:5432"
web: web:
build: . build: .
env_file: .env env_file: .env