Skip to content

Commit

Permalink
1.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
PadishahIII committed Apr 29, 2024
1 parent c65b520 commit 63ba25c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/secretscraper/config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ proxy: "" # http://127.0.0.1:7890
max_depth: 1 # 0 for no limit
max_page_num: 1000 # 0 for no limit
timeout: 5
follow_redirects: false
follow_redirects: true
workers_num: 1000
headers:
Accept: "*/*"
Expand Down
20 changes: 10 additions & 10 deletions src/secretscraper/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ def init_log() -> None:
"formatter": verbose_formatter(settings.VERBOSE),
"level": log_level,
"class": "logging.StreamHandler",
},
"file": {
"class": "logging.handlers.RotatingFileHandler",
"level": "INFO",
"formatter": verbose_formatter(settings.VERBOSE),
"filename": os.path.join(settings.LOGPATH, "all.log"),
"maxBytes": 1024 * 1024 * 1024 * 200, # 200M
"backupCount": "5",
"encoding": "utf-8",
},
}
# "file": {
# "class": "logging.handlers.RotatingFileHandler",
# "level": "INFO",
# "formatter": verbose_formatter(settings.VERBOSE),
# "filename": os.path.join(settings.LOGPATH, "all.log"),
# "maxBytes": 1024 * 1024 * 1024 * 200, # 200M
# "backupCount": "5",
# "encoding": "utf-8",
# },
},
"loggers": {
"": {"level": log_level, "handlers": ["console"]},
Expand Down

0 comments on commit 63ba25c

Please sign in to comment.