Skip to content

Commit d53e1c2

Browse files
committed
Lower the logging level of some log calls
1 parent 043734f commit d53e1c2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

pyrogram/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ async def handle_updates(self, updates):
540540
pts_count = getattr(update, "pts_count", None)
541541

542542
if isinstance(update, raw.types.UpdateChannelTooLong):
543-
log.warning(update)
543+
log.info(update)
544544

545545
if isinstance(update, raw.types.UpdateNewChannelMessage) and is_min:
546546
message = update.message

pyrogram/connection/transport/tcp/tcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async def close(self):
9191
self.writer.close()
9292
await asyncio.wait_for(self.writer.wait_closed(), TCP.TIMEOUT)
9393
except Exception as e:
94-
log.warning("Close exception: %s %s", type(e).__name__, e)
94+
log.info("Close exception: %s %s", type(e).__name__, e)
9595

9696
async def send(self, data: bytes):
9797
async with self.lock:
@@ -100,7 +100,7 @@ async def send(self, data: bytes):
100100
self.writer.write(data)
101101
await self.writer.drain()
102102
except Exception as e:
103-
log.warning("Send exception: %s %s", type(e).__name__, e)
103+
log.info("Send exception: %s %s", type(e).__name__, e)
104104
raise OSError(e)
105105

106106
async def recv(self, length: int = 0):

pyrogram/methods/auth/terminate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def terminate(
4141

4242
if self.takeout_id:
4343
await self.invoke(raw.functions.account.FinishTakeoutSession())
44-
log.warning("Takeout session %s finished", self.takeout_id)
44+
log.info("Takeout session %s finished", self.takeout_id)
4545

4646
await self.storage.save()
4747
await self.dispatcher.stop()

pyrogram/methods/utilities/start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def main():
6363

6464
if not await self.storage.is_bot() and self.takeout:
6565
self.takeout_id = (await self.invoke(raw.functions.account.InitTakeoutSession())).id
66-
log.warning("Takeout session %s initiated", self.takeout_id)
66+
log.info("Takeout session %s initiated", self.takeout_id)
6767

6868
await self.invoke(raw.functions.updates.GetState())
6969
except (Exception, KeyboardInterrupt):

pyrogram/parser/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def parse(self, text: str):
131131
for tag, entities in parser.tag_entities.items():
132132
unclosed_tags.append(f"<{tag}> (x{len(entities)})")
133133

134-
log.warning("Unclosed tags: %s", ", ".join(unclosed_tags))
134+
log.info("Unclosed tags: %s", ", ".join(unclosed_tags))
135135

136136
entities = []
137137

pyrogram/session/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async def handle_packet(self, packet):
229229
raise SecurityCheckMismatch("The msg_id belongs to over 300 seconds in the past. "
230230
"Most likely the client time has to be synchronized.")
231231
except SecurityCheckMismatch as e:
232-
log.warning("Discarding packet: %s", e)
232+
log.info("Discarding packet: %s", e)
233233
await self.connection.close()
234234
return
235235
else:

0 commit comments

Comments
 (0)