httpx:warning level logging, rm log file on hard restart.

This commit is contained in:
thedragonsinn
2023-11-16 15:47:13 +05:30
parent ebb8700496
commit eb1b4999ea
2 changed files with 3 additions and 0 deletions

View File

@@ -144,9 +144,11 @@ class BOT(Client):
await super().stop(block=False)
DB._client.close()
if hard:
os.remove("logs/app_logs.txt")
os.execl("/bin/bash", "/bin/bash", "run")
os.execl(sys.executable, sys.executable, "-m", "app")
async def send_message(
self, chat_id: int | str, text, name: str = "output.txt", **kwargs
) -> Message | Msg:

View File

@@ -22,3 +22,4 @@ basicConfig(
)
getLogger("pyrogram").setLevel(WARNING)
getLogger("httpx").setLevel(WARNING)