mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-24 19:54:25 -04:00
fix rich logging issues
This commit is contained in:
parent
0dffbf1bb4
commit
e99260feb2
5 changed files with 39 additions and 50 deletions
archivebox/core
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue