Skip to content

Commit

Permalink
闲时任务日志输出优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jan 6, 2024
1 parent 306dcf5 commit 914aab6
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def idle_time_task(exit_event):
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -332,7 +332,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -380,7 +380,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -321,7 +321,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -365,7 +365,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions bilibili2.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -334,7 +334,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -382,7 +382,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions douyu.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -319,7 +319,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -363,7 +363,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions dy.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -319,7 +319,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -363,7 +363,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions ks.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -497,7 +497,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -541,7 +541,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions talk.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -591,7 +591,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -639,7 +639,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -324,7 +324,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -368,7 +368,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions wxlive.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -282,7 +282,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -330,7 +330,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down
6 changes: 3 additions & 3 deletions youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def idle_time_task():
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)

logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

def load_data_list(type):
if type == "comment":
Expand Down Expand Up @@ -324,7 +324,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down Expand Up @@ -368,7 +368,7 @@ def load_data_list(type):
# 是否开启了随机闲时时间
if config.get("idle_time_task", "random_time"):
overflow_time = random.randint(0, overflow_time)
logging.info(f"闲时时间={overflow_time}")
logging.info(f"闲时时间={overflow_time}")

continue

Expand Down

0 comments on commit 914aab6

Please sign in to comment.