logging to info for debugging, remove dead worker

This commit is contained in:
BennyThink 2022-01-06 18:34:42 +08:00
parent acf3b1838b
commit 556521cee1
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
2 changed files with 6 additions and 5 deletions

View File

@ -48,7 +48,7 @@ services:
command: [ "/usr/local/bin/celery",
"-A", "flower_tasks", "flower",
"--basic_auth=benny:123456",
"--address=0.0.0.0", "--persistent"]
"--address=0.0.0.0", "--persistent","--purge_offline_workers=1" ]
volumes:
- ./data/flower:/ytdlbot/ytdlbot/flower
ports:

View File

@ -29,7 +29,8 @@ def apply_log_formatter():
def customize_logger(logger: "list"):
apply_log_formatter()
for log in logger:
logging.getLogger(log).setLevel(level=logging.WARNING)
# TODO: bug fix: lost response sometime.
logging.getLogger(log).setLevel(level=logging.INFO)
def get_user_settings(user_id: "str") -> "tuple":