mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
move config into dedicated global app
This commit is contained in:
parent
ee7f73bd7b
commit
3e5b6ddeae
79 changed files with 494 additions and 525 deletions
|
@ -7,7 +7,7 @@ import logging
|
|||
import pydantic
|
||||
import django.template
|
||||
|
||||
import archivebox
|
||||
from archivebox.config import CONSTANTS
|
||||
|
||||
from ..misc.logging import IS_TTY
|
||||
|
||||
|
@ -52,7 +52,7 @@ class CustomOutboundWebhookLogFormatter(logging.Formatter):
|
|||
|
||||
ERROR_LOG = tempfile.NamedTemporaryFile().name
|
||||
|
||||
LOGS_DIR = archivebox.DATA_DIR / 'logs'
|
||||
LOGS_DIR = CONSTANTS.LOGS_DIR
|
||||
|
||||
if LOGS_DIR.is_dir():
|
||||
ERROR_LOG = (LOGS_DIR / 'errors.log')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue