httpx:warning level logging, rm log file on hard restart.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -22,3 +22,4 @@ basicConfig(
|
||||
)
|
||||
|
||||
getLogger("pyrogram").setLevel(WARNING)
|
||||
getLogger("httpx").setLevel(WARNING)
|
||||
|
||||
Reference in New Issue
Block a user