File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments