parent: log discard_until() input when IOLOG is enabled

Trying to diagnose a Reddit user's problem.
pull/129/head
David Wilson 8 years ago
parent af25def01f
commit 88e354b809

@ -215,6 +215,9 @@ def iter_read(fd, deadline=None):
def discard_until(fd, s, deadline):
for buf in iter_read(fd, deadline):
if IOLOG.level == logging.DEBUG:
for line in buf.splitlines():
IOLOG.debug('discard_until: discarding %r', line)
if buf.endswith(s):
return

Loading…
Cancel
Save