mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
logging to info for debugging, remove dead worker
This commit is contained in:
parent
acf3b1838b
commit
556521cee1
@ -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:
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user