Skip to content

Commit

Permalink
update settings template
Browse files Browse the repository at this point in the history
  • Loading branch information
shengchenyang committed Nov 4, 2023
1 parent 3d7e7b7 commit 0cd2070
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ayugespidertools/templates/project/module/settings.py.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ REQUEST_FINGERPRINTER_IMPLEMENTATION = "2.7"
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
FEED_EXPORT_ENCODING = "utf-8"

CONFIG_DIR = Path(__file__).parent
LOG_DIR = CONFIG_DIR / "logs"
DOC_DIR = CONFIG_DIR / "docs"
VIT_DIR = CONFIG_DIR / "VIT"
VIT_DIR = Path(__file__).parent / "VIT"

LOG_LEVEL = "ERROR"
LOG_FILE = f"{LOG_DIR}/$project_name.log"
LOG_FILE = Path(__file__).parent / "logs/$project_name.log"
logger.add(
f"{LOG_DIR}/error.log",
Path(__file__).parent / "logs/error.log",
level="ERROR",
rotation="1 week",
retention="7 days",
Expand Down

0 comments on commit 0cd2070

Please sign in to comment.