fix rich logging issues

This commit is contained in:
Nick Sweeting 2024-09-24 21:17:07 -07:00
parent 0dffbf1bb4
commit e99260feb2
No known key found for this signature in database
5 changed files with 39 additions and 50 deletions
archivebox/core

View file

@ -1,3 +1,4 @@
__package__ = 'archivebox.core'
import re
import tempfile
import logging
@ -7,6 +8,8 @@ import django.template
import archivebox
from ..misc.logging import IS_TTY
IGNORABLE_URL_PATTERNS = [
re.compile(r"/.*/?apple-touch-icon.*\.png"),
@ -101,7 +104,7 @@ SETTINGS_LOGGING = {
"formatter": "rich",
"level": "DEBUG",
"markup": False,
"rich_tracebacks": True,
"rich_tracebacks": IS_TTY,
"filters": ["noisyrequestsfilter"],
"tracebacks_suppress": [
django,