mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-09-21 03:08:49 +03:00
Clean-up trace logs of messagebox
This commit is contained in:
parent
751b537fe1
commit
998f7d3fd9
|
@ -269,7 +269,7 @@ class MessageBox:
|
||||||
combined.seq,
|
combined.seq,
|
||||||
combined.seq_start,
|
combined.seq_start,
|
||||||
combined.date,
|
combined.date,
|
||||||
updates,
|
updates.__class__.__name__,
|
||||||
)
|
)
|
||||||
|
|
||||||
if combined.seq_start != NO_SEQ:
|
if combined.seq_start != NO_SEQ:
|
||||||
|
@ -350,7 +350,8 @@ class MessageBox:
|
||||||
if not pts:
|
if not pts:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
self._trace(
|
self._trace(
|
||||||
"no pts in update, so it can be applied in any order: %s", update
|
"no pts in update, so it can be applied in any order: %s",
|
||||||
|
update.__class__.__name__,
|
||||||
)
|
)
|
||||||
return None, update
|
return None, update
|
||||||
|
|
||||||
|
@ -370,7 +371,7 @@ class MessageBox:
|
||||||
"skipping update since local-pts=%r > pts=%r: %s",
|
"skipping update since local-pts=%r > pts=%r: %s",
|
||||||
local_pts,
|
local_pts,
|
||||||
pts,
|
pts,
|
||||||
update,
|
update.__class__.__name__,
|
||||||
)
|
)
|
||||||
return pts.entry, None
|
return pts.entry, None
|
||||||
elif local_pts + pts.pts_count < pts.pts:
|
elif local_pts + pts.pts_count < pts.pts:
|
||||||
|
@ -379,7 +380,7 @@ class MessageBox:
|
||||||
"possible gap since local-pts=%r < pts=%r: %s",
|
"possible gap since local-pts=%r < pts=%r: %s",
|
||||||
local_pts,
|
local_pts,
|
||||||
pts,
|
pts,
|
||||||
update,
|
update.__class__.__name__,
|
||||||
)
|
)
|
||||||
if pts.entry not in self.possible_gaps:
|
if pts.entry not in self.possible_gaps:
|
||||||
self.possible_gaps[pts.entry] = PossibleGap(
|
self.possible_gaps[pts.entry] = PossibleGap(
|
||||||
|
@ -396,7 +397,7 @@ class MessageBox:
|
||||||
"applying update pts since local-pts=%r = pts=%r: %s",
|
"applying update pts since local-pts=%r = pts=%r: %s",
|
||||||
local_pts,
|
local_pts,
|
||||||
pts,
|
pts,
|
||||||
update,
|
update.__class__.__name__,
|
||||||
)
|
)
|
||||||
|
|
||||||
if pts.entry not in self.map:
|
if pts.entry not in self.map:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user